Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gary

Pages: 1 2 [3] 4 5 ... 21
31
GLBasic - en / Re: Dual screen support
« on: 2015-Jul-29 »
Sorry for bouncing an old topic but I have come across the same sort of issue on another project I am working on, I have 2 monitors side by side both are 1024 x 768 size and are set as independant monitors. I cannot make them span view, infact due to other software that has to run on the machine I cant alter any settings. Is there now any way or forcing GLB to draw to both screens if I set the screen resolution to 2048 x 768 with full screen options?

32
FAQ / Re: How to wrap a DLL
« on: 2015-Jul-28 »
Just tried it on a 32 bit and 64 bit system and same result on both. I was told it does not need another DLL but dependancy walker says otherwise, think I have it running now, cheers

33
FAQ / Re: How to wrap a DLL
« on: 2015-Jul-28 »
that seems to have worked, strange thing is that it does not seem to be loading the dll file though, getting a DECLARE module not found : game socket.dll error in debug. Ive put the dll in the system 32 folder, program folder, and media folder and still the same error. Very strange

34
FAQ / Re: How to wrap a DLL
« on: 2015-Jul-28 »
cheers guys, thats got the example code running.

Im trying to wrap a 3rd party dll and have a few functions to add

the first one has no parameters passed to it but returns an int. I thought the code would be as follows

Code: (glbasic) [Select]
INLINE


extern "C" { // it's a C linking, as dependency walker told us
DECLARE_ALIAS(BPConnect, "GameSocket.dll", "BP_Connect", (void*), int);
} // close the extern "C"
ENDINLINE

FUNCTION Connect:
INLINE
if(BPConnect)
return BPConnect();
ENDINLINE
ENDFUNCTION

but this fails with the following error
compiling:
CMD: >>"C:\Program Files\GLBasic_v11\Compiler\platform\Win32\Bin\g++.exe" -B"C:\Program Files\GLBasic_v11\Compiler\platform\Win32\Bin" -pipe -O3 -w -c -x c++ -mwindows -I"C:\Program Files\GLBasic_v11\Compiler\platform\Include" -I"C:\Documents and Settings\Owner\Desktop\GL_DLL" -D_WINDOWS_ -DNDEBUG -DHAVE_OPENGL "C:\DOCUME~1\Owner\LOCALS~1\Temp\glbasic\gpc_tempg.cpp" "C:\DOCUME~1\Owner\LOCALS~1\Temp\glbasic\gpc_temp0.cpp" "C:\DOCUME~1\Owner\LOCALS~1\Temp\glbasic\gpc_temp1.cpp"    -DWIN32=1<<
C:\DOCUME~1\Owner\LOCALS~1\Temp\glbasic\gpc_temp1.cpp: In function `DGInt __GLBASIC__::Connect()':
C:\DOCUME~1\Owner\LOCALS~1\Temp\glbasic\gpc_temp1.cpp:42: error: too few arguments to function
*** FATAL ERROR - Please post this output in the forum

Any more tips?

I was given the following C code to connect the main functions

bool UnlimitedConnect(void)
{
   bool RetVal;
   bool connected;
   connected = false;
   DllModule = LoadLibrary( TEXT( "GameSocketDll.dll" ) );
   if (DllModule)
   {
       // Find all of the addresses
BP_StartDLL =(bp_bool_hwnd) GetProcAddress( DllModule, "BP_StartDLL" );
BP_EndDLL =   (bp_bool_void) GetProcAddress( DllModule, "BP_EndDLL" );
BP_Connect =   (bp_bool_void) GetProcAddress( DllModule, "BP_Connect" );
BP_Disconnect =   (bp_bool_void) GetProcAddress( DllModule, "BP_Disconnect" );
BP_EndGame =  (bp_bool_void) GetProcAddress( DllModule, "BP_EndGame" );
BP_UseCredit =   (bp_int_int) GetProcAddress( DllModule, "BP_UseCredit" );
BP_GetCredit =   (bp_int_bool) GetProcAddress( DllModule, "BP_GetCredit" );
BP_AddBank =   (bp_int_int) GetProcAddress( DllModule, "BP_AddBank" );
BP_GetBank =   (bp_int_bool) GetProcAddress( DllModule, "BP_GetBank" );
BP_PayoutAtLimit =   (bp_void_void) GetProcAddress( DllModule, "BP_PayoutAtLimit" );
BP_Payout =    (bp_bool_int) GetProcAddress( DllModule, "BP_Payout" );
BP_IsButtonDown =   (bp_bool_int) GetProcAddress( DllModule, "BP_IsButtonDown" );
BP_SetLamp =   (bp_void_int_bool) GetProcAddress( DllModule, "BP_SetLamp" );

       if (BP_StartDLL && BP_Connect)
       {
          RetVal = (*BP_StartDLL)(hWndThread);
          if (RetVal)
          {
             RetVal = (*BP_Connect)();
             if (RetVal)
             {
                 connected = true;
}
}
}
}
   return (connected);
}

35
FAQ / Re: How to wrap a DLL
« on: 2015-Jul-27 »
Could someone tell me where I am going wrong in this code? I thought I had followed all the example properly

Code: (glbasic) [Select]
// --------------------------------- //
// Project: test
// Start: Tuesday, May 26, 2015
// IDE Version: 12.308


// SETCURRENTDIR("Media") // go to media files

INLINE
// A MessageBox wrapper

extern "C" { // it&#39;s a C linking, as dependency walker told us
DECLARE_ALIAS(exportMessageBoxA, "user32.dll", "MessageBoxA", (void*, const char*, const char*, unsigned int), int);
} // close the extern "C"

ENDINLINE

main:


FUNCTION Win32MessageBox: text$, caption$
INLINE // of course, GLBAsic does not know about "exportMessageBoxA" - only INLINE does
   if(exportMessageBoxA)
      return exportMessageBoxA(0, text_Str.c_str(), caption_Str.c_str(), 0);
ENDINLINE
ENDFUNCTION

FUNCTION main:
Win32MessageBox("Test\nText","Hello")
ENDFUNCTION

but it compiles with these errors

C:\Users\Gary\AppData\Local\Temp\glbasic\gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:\Users\Gary\AppData\Local\Temp\glbasic\gpc_temp0.cpp:65: error: expected unqualified-id before string constant
C:\Users\Gary\AppData\Local\Temp\glbasic\gpc_temp0.cpp: In function `DGInt __GLBASIC__::Win32MessageBox(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\Gary\AppData\Local\Temp\glbasic\gpc_temp0.cpp:175: error: `exportMessageBoxA' was not declared in this scope
*** FATAL ERROR - Please post this output in the forum

36
What I heard (and it was a couple of months ago but not heard anything to change it) was no matter what the source of your windows 7/8/8.1 install was, you would get the upgrade offer to windows 10. This includes versions that may or may not have been activated properly.

Personally after using windows 10 at a gamejam I am totally on the fence regarding the improved start menu. Yes you have the old style Start back but you also have tacked onto the side of it a bloody metro style menu. Thankfully the company behind start8 (the best piece of windows 8 software I have ever used) have produced a start10 which gives the true windows 7 start button back in 10.

I cant work out where this sits in the skip one release cycle of windows, if 95 was a miss, 98 install, ME miss, XP install, vista miss, 7 install, 8 miss, was 8.1 a release in its own right (and the current OS I'm using) making it install and 10 then becomes a miss, or was 8.1 nothing more than a huge service pack and 10 is the polished version  :puke:

37
Actually no, I have a biz spark membership so I have windows keys a plenty from XP to 10. Also why would xbox preview membership give me windows 10? Windows insider which anyone can sign up for will give you win 10

38
Off Topic / Any xbox insider members on here?
« on: 2015-Jun-22 »
Dont suppose there is anyone on here who is part of the xbox preview program is there? Would love to try out the backwards compatibility stuff but it seems to become a member you have to be invited by someone who is on the program. So just thought I would ask if there was anyone on here who is.

Cheers
Gary

39
GLBasic - en / Re: Windows 8 / Multitouch
« on: 2015-Jun-18 »
well I tried it on my Linx 10 tablet and it displays 3 2 on the active screen and mice: 32 of the command prompt screen and it displayed little pointers for all 10 fingers touching the screen (well I think it did as my fingers were hiding the pointers)

40
Off Topic / Re: Forum down and back
« on: 2015-Jun-01 »
I think I pay for someone to set it allup for me. There's no way I can get this working alone. I thought that is a job of my server provider. :(

Gesendet von meinem GT-N7100 mit Tapatalk

What are you paying per month/year for your site hosting? I have a server from a company called Penguin-UK and cannot fault their service, you can even set up full backups and everything directly at what ever frequency of backup you want. Give me a PM if you want more details, I am more than willing to help backup and move the site if you want. I have moved some fairly big sites with large SQL databases in the past

41
Been a while since I did a build for release on the app store so wondered if there was any step by step instructions for making sure the app gets uploaded correctly with the correct certs etc as it looks like things have changed a lot in the last 4 years.

Cheers
Gary

42
Cheers Ocean, will save me a job on each new build :)

43
Is there any automatic way of getting the build date of the program to display when it starts running? or do I have to manually change the date in a string with every new build?

44
Well done, it's already looking a lot of fun. How do you handle timing as there is no interupts in GLB?

You could set up a thread that runs in the background and reads the current timer at the start and at the end pauses for the amount of time left to make it a fixed time (i.e. if timer is at 1000 when you enter and once the thread has run its at 1005 and you want to run it every 100ms you pause for 95ms before running again).

I have used this in a program and it works very well

45
GLBasic - en / Re: STRETCHSPRITE problem
« on: 2012-Jul-06 »
640 x 480 is not the same aspect ratio as 800 x 480 so the screen would look squashed. Is that the issue you are seeing?

Pages: 1 2 [3] 4 5 ... 21