My Timer class: why, after 6 or 7 instances, the timeSetEvent() is NULL?
heres my timer class: Code: #define min(x, y) __min((x), (y)) #define max(x,y) __max((x), (y)) class Timer { private: UINT_PTR timerid=0; UINT m_uResolution=0; unsigned int...
View ArticleUnable to create dll
I am using mingw64 under cygwin environment. I am trying to use dllwrap command to create dll file but unable to create with following error message $ dllwrap -o fcnsuite.dll fcnsuite.o dllwrap: no...
View ArticleProblem with DeviceIoControl function
This is my code: Code: HANDLE HandelUsb= CreateFile(L"\\\\.\\G:", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); if (HandelUsb == INVALID_HANDLE_VALUE) {...
View Articlehow change SetTimer() interval?
the gif animation can have a diferent delay between the frames. the SetTimer() makes a non Multimedia Timers.... the KillTimer() destroy the timer: https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx...
View Articlehow to overwrite the data in a file at particular line
hi, I am having one congiure.txt file we are trying to open the file and try to overwrite it go to particular line and overwrite on that particular line,can you please tell me how to overwrite in C...
View Articlehow use CreateTimerQueueTimer()?
why i can't use, correctly, the CreateTimerQueueTimer()? see these code: Code: class Timer { private: static unsigned int TimerCount; static vector<HANDLE> m_timerHandle; UINT_PTR...
View ArticleInsert in a file without overwriting without using a 2nd file using C/C++
The below are the contents in a text file. name1: 1234 name2: 2000 name3: 3000 This is an existing text file and I want to replace one value(say 1234) with another value (say 12345) in the text file....
View ArticleWindows (COM), Send bytes to serial port
Hello everyone, I'm trying to make a Windows program that sends data to a microcontroller, through serial port (usb emulating com). Till now, I made it with ASCII, but I have to do a job with a...
View ArticleAuto-completion for the WINAPI in notepad++
I would like to use notepad++ for programming application however, I can't find anywhere where I can activate auto-completion (something like IntelliSense for VS) for function specifically in the...
View Articlewindows headers and mingw
hello I'm having problems with codeblocks/mingw and some windows headers... working on a winapi project I needed to use a variable in the header commdlg.h ..but the compiler is giving me the error not...
View ArticleBackground combobox on gradient parent window?
I have window with gradient background. Combobox have own background brush. How can i remove white corner in combobox? How can i change brush or another way. Thanks. Sorry for the clumsy English...
View ArticleCreateFileMapping + NtExtendSection
Hi, Do someone have an example of CreateFileMapping + NtExtendSection I'm create a section with CreateFileMapping (PAGE_READWRITE | SEC_RESERVE) with a handle to a file, I'm trying to extend this...
View ArticleShowing the buttons pressed in a GUI Application
Hello there, i have a program with 5 buttons: Abyssal Scepter -> Writes something into ChampionName-SummonersRift.txt Aegis of the Legion -> Same thing, different id Beep -> Send a Beep Sound...
View Article[RESOLVED] Showing the buttons pressed in a GUI Application
Hello there, i have a program with 5 buttons: Abyssal Scepter -> Writes something into ChampionName-SummonersRift.txt Aegis of the Legion -> Same thing, different id Beep -> Send a Beep Sound...
View ArticleScaling the Window down.
Hello there, i have added a new button that does nothing to my recent project http://forums.codeguru.com/showthrea...UI-Application Code : http://pastebin.com/TcV3LNfN The "Bami's Cinder" button is...
View Articlelocation of shlwapi.lib
where do I locate shlwapi.lib? I need to link it in a project. after searching for the last ten minutes I still can't find it. can someone please point me in the right direction? thanks
View ArticleLinking .lib files in visual studio
Hello guys, yesterday I was having a problem of linking a .lib file and finding the file to link etc. with the help of master 2kaud all is solved now...but I have another question now.. using code...
View Articlebacklashes in source code
hello, trying to understand a source code I found online, I'm noticing these backlashes in the code I've never come across before, can someone explain to me what their purpose are? now the code snippet...
View Articlehow can i detect an error?
my aplication seems working normaly, but after same time(not fixed), the program ends and i get: "Process terminated with status -1073741819 (0 minute(s), 15 second(s))" i tryied debug it, but the...
View Article[RESOLVED] PostQuitMessage: why the WM_DESTROY isn't called?
heres my message loop: Code: WPARAM MessageLoop() { MSG msgEvents; while(GetMessage(&msgEvents,NULL,0,0)) { if(!IsDialogMessage(ActivatedForm,&msgEvents)) {...
View Article