
Error 321, Invalid File Format (vb4, 16 bit)
It could be the platform your running the GetPrivateProfileSting calls from,
maybe.
There is a difference in declarations of the API between the 16 bit and
Win95. Therefore, if you run your 16 bit app on a 95 box, then the
declaration is syntactically incorrect to import the win32 version.
If'n this is the case, then you'd just need to add declarations for both in
conditional compile branches in the general declarations section like this.
. .
#If Win32 Then
'paste win32 API import declarations here
#Else
'paste 16 bit version here
#End If
:) smiles
Quote:
>This has me really stumped.
>The program runs fine in design mode. Crashes with the exe. It appears to
>be happening around some GetPrivateProfileString calls... (I could be wrong
>though)
>Funny thing is, I compiled an exe that was installed on a client machine
>last week and everything ran fine. This week the problem started
>occurring. I have only added one new form to the project, but I have not
>changed the database or the ini file at all.
>Any help would be greatly appreciated.
>--
>Please post response to newsgroup, or ayoakumATlandrumDASHbrownDOTcom
>Thank you!
>A. Yoakum