Obviously we would have to see both your IString class and both programs your friend used in order to get anywhere on this.--at least the important pieces of code from each.
I'm thinking it's...
Type: Posts; User: ShortCoder
Obviously we would have to see both your IString class and both programs your friend used in order to get anywhere on this.--at least the important pieces of code from each.
I'm thinking it's...
Sorry...you'll probably want
LPDEVMODE lpDevMode;
lpDevMode = (LPDEVMODE) LocalAlloc(LPTR, sizeof(DEVMODE));
ZeroMemory(lpDevMode, sizeof(DEVMODE));
lpDevMode->dmSize = sizeof(DEVMODE);...
You can pass a function name acting as a pointer to that function.
For example:
Suppose you have two functions--printme and feedme.
int feedme(void (*function)(char*)){
...
It is there because (I assume) it is different sizes on different platforms but if you're just using size_t rather than int or long or short or whatever then it won't really matter how it was chosen...
Have you tried
LPDEVMODE lpDevMode;
ZeroMemory(lpDevMode, sizeof(DEVMODE));
lpDevMode->dmSize = sizeof(DEVMODE);
ChangeDisplaySettings(lpDevMode, CDS_FULLSCREEN);
Yes. First you LoadLibrary as you have there then GetProcAddress on each function exported from the dll you wish to use.
You've got it:)
^^--Thank you:)
Okay, I've gotten some success with the following.
crtmaintest.c
#include <windows.h>
int mainCRTStartup(int argc, char* argv[]){
MessageBox(NULL,"Hello","hello",MB_OK);
return 0;
}
For stuff like this, you are MUCH more likely to find something useable as a library if you are under Linux. You can always try searching http://www.freshmeat.net and see what results you get. I...
I'm not going to do your work for you, but you can start by finding patterns in the text, finding things which seem like they could be for-looped to regenerate the output file, finding redundancies,...
Well, what I meant was it uses ebp for pointing at the parameters passed to the function but also the return address is going to be on the stack somewhere. If you don't save the stack, when you...
If you are programming under Linux, this http://freshmeat.net/projects/parapin/ is EXACTLY what you want;)
I would say to learn
Graphics programming
How to make your own decent music
Sound/Music programming
Graphics design
DirectX
OpenGL
Collision-detection algorithms
anything and everything you...
Okay, find out the address of the parallel port (no need for port scanning here--I'm thinking you didn't really mean "port scanning" as that either means scanning through all hardware ports or else...
Code looks good to me.
Anyhow, a delete function would be something like you point the previous entry's forward pointer to go to the entry after the current one, special-casing for the first...
I am using MSYS and MingW on Windows to compile Windows applications using gcc;). Reason?--because I want to be able to actually sell programs I make (legally) and because I cannot afford the high...
If you want to see real code, there is no better way than to download any open-source software's source code, and read that;)
Code in books will be just that--more or less for learning purposes of...
Thanks man!:D
now I've got some another problem (the linker giving errors of undefined _mainCRTStartup) and I've tried both -D_mainCRTStartup=WinMain and -DmainCRTStartup=WinMain to no avail
Ah,...inline assembly:D
Well, this is tricky because every compiler seems to do it a little differently.
As suggested, here is how you would do it in TurboC++
int main(int argc, char*...
Hello. I searched the FAQ and the forums for "libc" and did not come across anything relevant.
Perhaps someone knows of a flag to pass to gcc so that libc is not included with your code?
I am...