Reputation: 316 Architect
- Active Posts:
- 1,886 (0.79 per day)
- 26-March 09
- Profile Views:
- Last Active:
- Today, 02:26 AM
- OS Preference:
- Who Cares
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Who Cares
- Dream Kudos:
- Expert In:
Posts I've Made
Posted 2 Oct 2015Thanks again, I'll give that a go.
Appreciate your assistance.
Posted 2 Oct 2015Thanks for the pointers.
regarding your comment about loading the settings manually, are you suggesting I should load them in the VB app and pass them through to the DLL or load them in the DLL directly (the VB app doesn't use them as such)?
again, apologies if these are dumb questions.
Posted 2 Oct 2015Sorry for raising this again so long after the original post.
The renaming of the config file to app.exe.config, works a treat when the VB6 app is compiled.
The issue I now have, is I want to be able to debug the VB6 app whilst calling the DLL, but for whatever reason, it can create the object reference, but any calls seem to fail with no explanation (I can only assume the DLL can't see the config file).
I've registered the DLL using both GacUtil and Regasm and even placed a copy of the config file in the GAC folder of the DLL, but still no joy.
Can anyone explain what I could be missing here? Thanks.
[EDIT] by creating a copy of the config file as app.vbp.config, it now seems to be able to call the DLL functions, but the DLL itself doesn't seem to be able to see the config details as it's not managing to call the webservice.
Posted 24 Sep 2015The variable sngVar1 is just a name, it is no different than Var1, I just prefixed the datatype (single).
One thing worth thinking about is the variable declaration, as far as I remmeber, you need to tell VB6 what each variable type is, so your code of
Dim var1, var2, var3 as single
only var3 is of type single, the rest are of type variant.
Posted 24 Sep 2015Not sure what the issue is with negative numbers, but it works fine
Dim sngVar1 As Single, sngVar2 As Single Dim sngAnswer As Single, sngAnswer2 As Single sngVar1 = -2.345 sngVar2 = -5.678 sngAnswer = sngVar1 + sngVar2 / 2 sngAnswer2 = (sngVar1 + sngVar2) / 2
sngAnswer2 = -4.0115
- Member Title:
- D.I.C Lover
- 44 years old
- June 12, 1971
- Programming Languages:
- C#, VB
- Website URL: