SOLVED!!
Again thank you all for your prompt response. This is indeed one of the most helpful communities I've been through...
Anyways, Urwumpe got it - I checked the config and the problem seemed to lie in the Common Language Runtime Support. I set it to No Common [etc.] and InitModule is...
Yes. Still no success - in that case, the compiler tells me that dllmain is already defined in MSVCRTD.lib. Ingnoring this library only worsens things.
Hi all - thanks for your responses. In order:
Urwumpe: I was referring to the wiki compiler setup tutorial.
Computerex: I followed your tutorial instructions and tried compiling the sample code, and I get the same error as with my .dll. However, I note that I do not ignore msvcrt.lib...
My compiler settings have been working so far and should be as per the compiler tutorial... It wasn't until I tried assigning the handle to the module into InitModule that I came across the fact that that function is not called at all. Anyways thank you for the hint, I'll try and dig deeper into...
Thank you Urwumpe, but if I ignore MSVCRT.LIB, I get the following
1>------ Build started: Project: Strelka, Configuration: Release Win32 ------
1>Compiling...
1>Strelka.cpp
1>Linking...
1> Creating library ..\..\..\Orbiter\Modules\Strelka.lib and object ..\..\..\Orbiter\Modules\Strelka.exp...
Hi all,
I'm still vying with my first .dll addon. My problem is with InitModule and ExitModule. I gather from the API Guide and Reference that the presence of #define ORBITER_MODULE at the head of my main .cpp file should cause the .dll to call both.
My point is, it doesn't - I guess due to...
SOLVED!!!
As I thought, it was much simpler than expected - and I've been as stupid as a noob can be. The point is that I copied down the API Guide MFDMode code snippet which is
void MyVessel::MFDMode (...),
and I didn't notice that in the code samples it's actually...
Keith I think AstroMatiz is exactly what I was looking for... I'll let you know!
---------- Post added at 11:56 AM ---------- Previous post was at 12:55 AM ----------
No way. I followed the instructions in Keith's tutorial, compared my code with his, rewritten some according to the Matiz...
Here you go:
I tried TextOut with a dummy label ("abc") outside the [if], just to see if the problem had something to do with my texture, but the label shows up all right.
The snapshot above is from the 'else break' line because the TextOut is not hit at all (presumably because i don't...
I should have been clearer here: yes that's the ReleaseDC that's doing it, so it is fine.
I took your advice when you pointed this out to me earlier. But the fact is that when I compile the code as you see it (meaning, assigning to the constant), I get no error and NO warning. Still I removed...
I cleaned up things a bit (I think). Now I have the following:
bool Strelka::clbkVCRedrawEvent(int id, int event, SURFHANDLE surf)
{
switch (id)
{
case AID_MFD_R_LEFT:
RedrawMFDButtons (surf, MFD_RIGHT, 0);
return true;
};
return false;
}
...
void...
I followed the directions. I got a message saying that orbiter.exe is not built with debugging information, anyways I got on with debug and got <undefined> as a value for [label] when I make the assigment in the [if] section. I understand this is the problem both Agentgonzo and Tblaxland were...
I'll try debugging and update on outcome (I'm at work now ;))
---------- Post added at 11:59 PM ---------- Previous post was at 05:13 PM ----------
Here. I think you pointed me in the right direction somehow. I still missed the oapiTriggerRedrawArea functions, which I coded in, then moved the...
Yes that goes for me, meaning if I take out that code snippet above and compile with Multi-Byte or no charachter set everything's fine, but WITH the code I get the CTD. What is it I am missing?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.