Advanced Question Help on making a pop window like for RMS arm

Doesn't your school have to pay a subscription? My school has a premium account. It looks like VS2010 professional is the latest year, offered
 
Doesn't your school have to pay a subscription? My school has a premium account. It looks like VS2010 professional is the latest year, offered

That sounds like either an MSDN subscription instead of DreamSpark, or you have Standard rather than Premium. DreamSpark Premium should give you access to VS Ultimate, per the matrix here.

Still, if you can get VS2010 Pro, I'd at least grab that for now and sort the rest out later if you want.
 
Last edited:
Also... you should remember that $800 for a good integrated development environment (and Visual Studio 2013 is really great now) is a fair price...

...such a tool stays with you for the rest of your life
 
Whether or not you abide by the EULA doesn't matter to me,
but technically I believe the agreements *might* involve needing to be a student and I believe do require you to only use the software 'academically'.
 
I wonder if this will work with my laptop running Vista?

Microsoft Visual Studio 2010 Professional 32-bit (English) or the 2013 which I think needs Windows 7
 
Whether or not you abide by the EULA doesn't matter to me,
but technically I believe the agreements *might* involve needing to be a student and I believe do require you to only use the software 'academically'.

That was the case when I was in college, which was before DreamSpark existed. Our school was a Microsoft Partner, which back then, afforded some of the same benefits.

The availability on these appears to be Students/Faculty/Staff, so if he works at the college, he may be good to go. Would still be good to verify it all with other staff at the school though to be sure.

As far as compatibility with Vista, it looks like you are limited to 2010 at the latest, but it appears you do have Ultimate available to you in that version if you want it.

Also, if you want to upgrade to Windows 7, it looks like you have options there through DreamSpark as well.... ;)
 
...such a tool stays with you for the rest of your life

Or until Microsoft forces you to upgrade.

So, such a tool stays with you for 5-10 years, until you are forced to upgrade because it cannot keep up with the demands of changing technology...

---------------

Okay, on a more on-topic note, would it be theoretically possible to use the resources already included in Orbiter to create your own dialog box? I know that the LUA popups seem to be created easily enough...
 
Last edited:
Got Windows 7 installed. I hoped it would have improved my FPS but NOT. So which visual basic should I get. and are there other thing I will need to get it to compile?
 
OK. back to a dialogue window. I know the Atlantis has the code there. I am not sure if it is easier to copy and paste til you get no errors compiling. And then edit what you need?
Any one want to help?
 
Ok. I started to build a dialogue box for rms like on by flexcraft.

I looked at the Atlantis code and copied and changed atlantis to flexcraft. No errors, finally. But when I press a key no dialogue window is created or ctd.

Code:
if (key == OAPI_KEY_SPACE){ // open RMS control dialog
		oapiOpenDialogEx(g_Param.hDLL, IDD_CTRL, FLEXCRAFT2_DlgProc, DLG_CAPTIONCLOSE, this);
		return 1;
	}
Code:
BOOL CALLBACK FLEXCRAFT2_DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	FLEXCRAFT2 *sts = (uMsg == WM_INITDIALOG ? (FLEXCRAFT2*)lParam : (FLEXCRAFT2*)oapiGetDialogContext(hWnd));
	// pointer to vessel instance was passed as dialog context

	switch (uMsg) {
	case WM_COMMAND:
		switch (LOWORD(wParam)) {
		case IDCANCEL:
			oapiCloseDialog(hWnd);
			return TRUE;
		
		case IDC_RMSOP:
			oapiOpenDialogEx(g_Param.hDLL, IDD_RMS, FLEXCRAFT2_DlgProc, DLG_CAPTIONCLOSE, sts);
			break;
		}
		break;
	}
	return oapiDefDialogProc(hWnd, uMsg, wParam, lParam);
}

Not sure why?

---------- Post added 09-03-14 at 05:50 AM ---------- Previous post was 09-02-14 at 09:30 PM ----------

I added this:
Code:
// --------------------------------------------------------------
// Module initialisation
// --------------------------------------------------------------
DLLCLBK void InitModule(HINSTANCE hModule)
{
	g_Param.hDLL = hModule;
	oapiRegisterCustomControls(hModule);
	g_Param.tkbk_label = oapiCreateSurface(LOADBMP(IDB_TKBKLABEL));

	// allocate GDI resources
	g_Param.font[0] = CreateFont(-11, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 0, "Arial");
}

DLLCLBK void ExitModule(HINSTANCE hModule)
{
	oapiUnregisterCustomControls(hModule);
	oapiDestroySurface(g_Param.tkbk_label);

	// deallocate GDI resources
	DeleteObject(g_Param.font[0]);
}
but get 2 errors
Error 2 error LNK2001: unresolved external symbol "void __cdecl oapiRegisterCustomControls(struct HINSTANCE__ *)" (?oapiRegisterCustomControls@@YAXPAUHINSTANCE__@@@Z) E:\orbiter2010p1A\Orbitersdk\samples\FLEXCRAFT2\FLEXCRAFT2.obj FLEXCRAFT2

Error 3 error LNK2001: unresolved external symbol "void __cdecl oapiUnregisterCustomControls(struct HINSTANCE__ *)" (?oapiUnregisterCustomControls@@YAXPAUHINSTANCE__@@@Z) E:\orbiter2010p1A\Orbitersdk\samples\FLEXCRAFT2\FLEXCRAFT2.obj FLEXCRAFT2


i found this in DlgCTRL
Code:
void oapiRegisterCustomControls (HINSTANCE hInst);
void oapiUnregisterCustomControls (HINSTANCE hInst);


No ideas grasping at straws to get the window to open
 
The linker errors show that you never defined oapiRegisterCustomControls. Is it part of the OrbiterAPI, or is it a function that DlgCTRL defined itself?
 
yes.
Code:
#define ORBITER_MODULE
#include "orbitersdk.h"
#include "FLEXCRAFT2.h"
#include "DlgCtrl.h"
#include "resource.h"
#include <stdio.h>
#include <fstream>
 
yes.
Code:
#define ORBITER_MODULE
#include "orbitersdk.h"
#include "FLEXCRAFT2.h"
#include "DlgCtrl.h"
#include "resource.h"
#include <stdio.h>
#include <fstream>
Have you checked that VC++ can properly identify for example oapiRegisterCustomControls? It is part of DlgCTRL.h so it should be able to, if you have set up the project correctly.
 
Not sure what you mean. Here is my set up you can see:
flexsetup_zps1a0728da.jpg
 
Back
Top