Search found 14 matches

by neomancer
Wed Apr 19, 2006 12:03 pm
Forum: Coding Questions
Topic: DLL and VB String help
Replies: 2
Views: 1361

the code works when i want the dll to return a string to me, (or pBSTR value) this works great, but the moment i want to pass parameters to a dll functions it crashes...

[vb bit]
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private ...
by neomancer
Tue Apr 18, 2006 11:42 pm
Forum: Coding Questions
Topic: DLL and VB String help
Replies: 2
Views: 1361

DLL and VB String help

Hi, im having some luck with returning a string pstr value from a dll to VB
the question is now, how do i pass a string to the dll

it works when i declair the dll
eg. Declare Sub ReadString Lib "mydll.dll" (ByVal Length As string)


but i want to us it by using the api calls,
LoadLibrary and ...
by neomancer
Tue Jun 08, 2004 1:07 pm
Forum: Coding Questions
Topic: Dialog icons in DLLS
Replies: 0
Views: 766

Dialog icons in DLLS

I have tried to replace the icon in my window with something i did .ico file, it works in normall .exe files but in DLLs the program trying to use the DLL just crashes, so i started thinking is it possible to have a replaced window ICOn in DLL window dialogs?
by neomancer
Tue Jun 08, 2004 1:04 pm
Forum: General Discussion
Topic: DLL fails to create a window the second time it is called.
Replies: 4
Views: 1339

how about destroywindow_(WindowID()) ?
that should clear up windows
by neomancer
Sat Jun 05, 2004 12:48 am
Forum: Coding Questions
Topic: windows CE
Replies: 1
Views: 828

windows CE

Would my DLLS in purebasic work on a windowsCE?
or would that require a compiler for the ARM processor?
by neomancer
Fri Jun 04, 2004 8:44 pm
Forum: Coding Questions
Topic: dlls
Replies: 4
Views: 1672

Im a little new, but it worked.

if your still having problems

use

destroywindow_(WindowID(0))

i dont know if it will leave memory leaks tho, i dunno how to look for those
by neomancer
Fri Jun 04, 2004 6:27 pm
Forum: Coding Questions
Topic: Where are all the #PB constants?
Replies: 4
Views: 1522

but thats only a bit of it, where are the rest of em?

like events consts, and stuff?
by neomancer
Fri Jun 04, 2004 6:16 pm
Forum: Coding Questions
Topic: Where are all the #PB constants?
Replies: 4
Views: 1522

Where are all the #PB constants?

im writing an about dialog box, but i dont know what the constants are

example. the #IDI_Asterisk means the Icon asterisk but where did i find them all?
by neomancer
Fri Jun 04, 2004 3:31 pm
Forum: Coding Questions
Topic: Window Icons
Replies: 12
Views: 3970

Window Icons

How do i get an ICON in the window? like they normally do? system control box (top left)
by neomancer
Fri Jun 04, 2004 2:42 pm
Forum: Coding Questions
Topic: Visual Basic and PureBasic DLLs
Replies: 16
Views: 2884

I got a Syntax error! Protected lPSTR.l
[edit]
WORKS!!!!!!!!!!

your lovely! wow and its so simple!
by neomancer
Fri Jun 04, 2004 1:25 pm
Forum: Coding Questions
Topic: Visual Basic and PureBasic DLLs
Replies: 16
Views: 2884

have you got an example?
for both pb and vb
i dont know how this stuff work at all! i come from a background of BlitzBasic (they dumbed me!)
by neomancer
Fri Jun 04, 2004 12:26 pm
Forum: Coding Questions
Topic: Visual Basic and PureBasic DLLs
Replies: 16
Views: 2884

wow i realy dont know whats going on here

ok.

how do i get a procedureDLL to return the string "Your string is returned"

this is for a VB project
by neomancer
Fri Jun 04, 2004 11:12 am
Forum: Coding Questions
Topic: Visual Basic and PureBasic DLLs
Replies: 16
Views: 2884

well basically i want to see if i can pass a text file out of the dll

so it would be ASCII, i dont know much about Purebasic.

Its a project i wrote years back, you pass a whole readme.txt and it jumbles up the text file and passes it back

<vb code>

newstring$ = MyFunction(textfromfile ...
by neomancer
Fri Jun 04, 2004 10:48 am
Forum: Coding Questions
Topic: Visual Basic and PureBasic DLLs
Replies: 16
Views: 2884

Visual Basic and PureBasic DLLs

How do i make a DLL for a Visual Basic program?

i need to return a string, but VB keeps crashing. 8O

any help?