E
ex-orbinaut
Guest
Hi,
Some help please, if possible…
I am bogged down (again) with something, and cannot find info on the threads except this one which hints towards my dilemma.
http://www.orbiter-forum.com/showthread.php?t=7969&highlight=LoadBitmap
Once more, it is something that I believe would interest other people trying to expand their SD horizons in Orbiter.
I am not having any problems embedding the resource. The dll, with embedded bmp, compiles and runs without a problem. It even switches to the panel view with F8, but there is no panel displayed. If I try to "scroll in" the panel with the arrow keys then, and only then, does it CTD Orbiter.
Now, I am at a loss with the following issues, and have the following doubts.
I am using VC++ 2008 Express. Is the LoadBitmap Windows API function superceded by LoadImage in VC++ 2008? Is that why it is not grabbing the bmp?
I notice the sample SDK *.rc files have the comment “//Microsoft Developer Studio generated resource script” at the top. Is it important for Orbiter that it be generated by MDS, despite the fact that embedding resources by other methods (RC.exe, for one example) is not a problem?
The crux seems to be that MAKEINTRESOURCE does not appear to be creating the bmp handle and I do not understand why. Has anyone come across this problem in VC++ 2008 or any other compiler?
Any help would be gratefully appreciated. 2D panels are an excellent way to add some polish to spaceships, but this problem is hampering my particular progress. If I do figure it out myself, I will nonetheless post the solution here, in case anyone else is finding the same obstacle insurmountable.
Thanks in advance and all the best!
Some help please, if possible…
I am bogged down (again) with something, and cannot find info on the threads except this one which hints towards my dilemma.
http://www.orbiter-forum.com/showthread.php?t=7969&highlight=LoadBitmap
Once more, it is something that I believe would interest other people trying to expand their SD horizons in Orbiter.
- How exactly do you grab your 2D BitMap Panel once you have embedded it in your dll?
I am not having any problems embedding the resource. The dll, with embedded bmp, compiles and runs without a problem. It even switches to the panel view with F8, but there is no panel displayed. If I try to "scroll in" the panel with the arrow keys then, and only then, does it CTD Orbiter.
Now, I am at a loss with the following issues, and have the following doubts.
I am using VC++ 2008 Express. Is the LoadBitmap Windows API function superceded by LoadImage in VC++ 2008? Is that why it is not grabbing the bmp?
I notice the sample SDK *.rc files have the comment “//Microsoft Developer Studio generated resource script” at the top. Is it important for Orbiter that it be generated by MDS, despite the fact that embedding resources by other methods (RC.exe, for one example) is not a problem?
The crux seems to be that MAKEINTRESOURCE does not appear to be creating the bmp handle and I do not understand why. Has anyone come across this problem in VC++ 2008 or any other compiler?
Any help would be gratefully appreciated. 2D panels are an excellent way to add some polish to spaceships, but this problem is hampering my particular progress. If I do figure it out myself, I will nonetheless post the solution here, in case anyone else is finding the same obstacle insurmountable.
Thanks in advance and all the best!
