realbasic-nug
[Top] [All Lists]

Windows Declare Help/Crash

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Windows Declare Help/Crash
From: Christian Miller <realbasic at nc dot rr dot com>
Date: Thu, 31 Mar 2005 11:00:56 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I am trying to convert a VB6 project to RB. It seems to be working except when it makes the following call: Declare Function SetOptionValueA Lib "engine.dll"(ByRef Name as cstring, ByRef Value as cstring) as integer
return SetOptionValueA(mb1,mb2)

mb1 & mb2 are memory  blocks, assigned in this manner:
mb1 = newMemoryBlock(1+LenB(sName))
mb2 = newMemoryBlock(1+LenB(sValue))
mb1.cstring(0) = sName
mb2.cString(0) = sValue

The application just crashes on WinXP and wants to send the report for Microsoft. The DLL works because the VB6 application works fine. Any help would be appreciated. :)

Christian
Pariahware, Inc. Custom Software
<pariahware at pariahware dot com>
<http://www.pariahware.com>
--
God loved you so much that He gave His only son Jesus. What have you done with God's gift?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>