No matter, managed to fix it, thanx to all that looked
Type: Posts; User: korbitz
No matter, managed to fix it, thanx to all that looked
okay, i have a c function that reads from a file and populates a data structure, at present the filename is defined during development. what i was hoping for was to use the standard load dialog that...
okay, no matter, got the images displayed, still getting that error with the error checker, but the code is doing what is is meant to be doing so far, so i'm happy :)
okay, i ran an error checker through the code and get an error on this section of code
SendMessage(g_hToolbar, TB_ADDBITMAP, 0, (LPARAM) &tbAddBitmap);
the error checker reports the...
okay i added the code from that link but the images are not displaying
the compiler dont like this line
// Create a toolbar that has ToolTips associated with it...
g_hwndToolbar =...
i wonder if anyone can help me with this small problem
i have a toolbar, that displays 3 standard toolbal buttons, NEW, OPEN, SAVE. This displays and works okay, i can add other system buttons...
no matter, managed to fix it
HBITMAP hbitmap;
HINSTANCE hInst = GetModuleHandle(0);
HWND g_hTemp;
LPVOID lpMsgBuf;
int len = 0;
int node = 0;
1. yep
2. done, no joy
3. done also, no joy
4. i changed HINSTANCE hInst; to HINSTANCE hInst = GetModuleHandle(0);, no joy still
i have included the entire code, but the code in question is on...
okay i entered that getlasterror and the error that it reports is
Invalid Window Handle
i set the style in the dialog create thingy and checked that its in the dialog resource
i also done a debug of the code and it returned NULL, any reason why its returning NULL?
from script.rc
PUSHBUTTON "+X",IDC_BUT_X1_AXIS,0,0,32,27,BS_BITMAP,
WS_EX_DLGMODALFRAME
yeah it has the BS_BITMAP style
thanx for the reply, but i should have said i am writing the code in win32 not MFC
sorry for the confusion, here is what i have gotten so far, but it dont work :(
BOOL CALLBACK...
is there an easy way to display a .bmp image onto a button, i have looked at the dialog design functions of msvc but cant find anywhere to add it
i have also done a search for this but can only...
:confused: damn it, now all of a sudden one of the functions that worked before aint working too good, sometimes it works sometimes it crashes the system
in one instance i ran the program and...
:D :D :D :D :D
many thanx, i dunno how i missed all them function prototypes, i must have looked at them loads of times
but as i recall when i started this code, when i put the variable type...
This is a bit difficult to explain, but here goes anyway
I have a workspace with 2 .c files, 3 .h files and a .rc file
every now and again i get errors about 2 functions that have always worked...
in responce to yer last point, yes i do need all cubes on screen at a time although 10000 will probably wont be ever achieved, but scope needs to be in place for this to happen, (just incase)
is...
okay, i have a GLUT window that gets called by a win32 GUI (finally got that working :))
the problem: when i run the code it complains about the size of the image (size as in memory size)
i...
okay heres the scenario, i have a mdi GUI and a GLUT visualisation image
heres my problem, GLUT dont work with winMain so i have 3 solutions to my problem
1. Rewrite GLUT into openGL or somehow...
:o no, i just pressed rebuild
should read better i think
LOL, but i did rebuild the project before i sent the code to someone else
i managed to remove the errors by sending my source to someone else who then compiled the code and ran it, then he sent the exact same code back to me and it worked
is that wierd or what...
sorry bout the delay in replying to this, but been busy
okay, you mention calling mainLoop() or something like that but what parameters need to be passed into glutInit as it takes the parameters...
heres the scenario,
i have a GUI with a standard WinMain function
and a glut file with a main function
what would be the best way to call the glut file from the GUI if at all it is possible...
so basically, its something to do with the way i have visual studio setup then?
do you have any ideas at all why it works on yours but not mine, i am using Visual Studio 6