473,804 Members | 3,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

interop between VB.NET and eVC++

hi there,

i'm working on a smart application project on VB.NET. i must call API
(custom eVC++ DLL) but i have some trouble with mashalas attribute.....
i have copy/past a sample on msdn help but it's not working..
IDE says "unknown 'mashalAs' attribute"..... and i don't know why....

i have try exactly the same code on a normal windows project and it work
(compile) fine...

i don't know what i've missed....

here some lines of my code...

thank a lot...

Imports System.Runtime. InteropServices

Public Class Form1

Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg As String)
As Int32
Nov 21 '05 #1
10 1869
MarshalAs attribute is not supported in CF - simply drop it, and your string
will be passed as LPCWSTR (note the constant part)
As for a byte array, replace ByRef with ByVal - the array will be passed
down as LPBYTE

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
hi there,

i'm working on a smart application project on VB.NET. i must call API
(custom eVC++ DLL) but i have some trouble with mashalas attribute.....
i have copy/past a sample on msdn help but it's not working..
IDE says "unknown 'mashalAs' attribute"..... and i don't know why....

i have try exactly the same code on a normal windows project and it work
(compile) fine...

i don't know what i've missed....

here some lines of my code...

thank a lot...

Imports System.Runtime. InteropServices

Public Class Form1

Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg As
String) As Int32

Nov 21 '05 #2
oh ok.....

thank, but i have one more question...
in my eVC++ DLL some functions use non-unicode strings (unsigned char*)

how i can tell VB to call DLL with non-UNICODE string format ?

thank a lot !
"Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le message
de news: uH************* *@TK2MSFTNGP09. phx.gbl...
MarshalAs attribute is not supported in CF - simply drop it, and your
string will be passed as LPCWSTR (note the constant part)
As for a byte array, replace ByRef with ByVal - the array will be passed
down as LPBYTE

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
hi there,

i'm working on a smart application project on VB.NET. i must call API
(custom eVC++ DLL) but i have some trouble with mashalas attribute.....
i have copy/past a sample on msdn help but it's not working..
IDE says "unknown 'mashalAs' attribute"..... and i don't know why....

i have try exactly the same code on a normal windows project and it work
(compile) fine...

i don't know what i've missed....

here some lines of my code...

thank a lot...

Imports System.Runtime. InteropServices

Public Class Form1

Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg As
String) As Int32


Nov 21 '05 #3
Pass a byte array.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
oh ok.....

thank, but i have one more question...
in my eVC++ DLL some functions use non-unicode strings (unsigned char*)

how i can tell VB to call DLL with non-UNICODE string format ?

thank a lot !
"Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le message
de news: uH************* *@TK2MSFTNGP09. phx.gbl...
MarshalAs attribute is not supported in CF - simply drop it, and your
string will be passed as LPCWSTR (note the constant part)
As for a byte array, replace ByRef with ByVal - the array will be passed
down as LPBYTE

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
hi there,

i'm working on a smart application project on VB.NET. i must call API
(custom eVC++ DLL) but i have some trouble with mashalas attribute.....
i have copy/past a sample on msdn help but it's not working..
IDE says "unknown 'mashalAs' attribute"..... and i don't know why....

i have try exactly the same code on a normal windows project and it work (compile) fine...

i don't know what i've missed....

here some lines of my code...

thank a lot...

Imports System.Runtime. InteropServices

Public Class Form1

Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg As
String) As Int32



Nov 21 '05 #4
yes i have already test this....it's ok but in my VB code i can't directly
convert String to byte array..

like this..
DLLFunction ("Toto".tobytea rray)

i must declare one byte array then fill it with the string chars....then
call my function...
Dim bytearray(50) as byte
convertstring2b ytearray ("toto",bytearr ay)
DLLFunction(byt earray)

i prefer the first method....but how i can implement the toByteArray method
to the string class ?

thank a lot .

"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le message
de news: Ow************* *@TK2MSFTNGP15. phx.gbl...
Pass a byte array.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
oh ok.....

thank, but i have one more question...
in my eVC++ DLL some functions use non-unicode strings (unsigned char*)

how i can tell VB to call DLL with non-UNICODE string format ?

thank a lot !
"Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le
message
de news: uH************* *@TK2MSFTNGP09. phx.gbl...
> MarshalAs attribute is not supported in CF - simply drop it, and your
> string will be passed as LPCWSTR (note the constant part)
> As for a byte array, replace ByRef with ByVal - the array will be
> passed
> down as LPBYTE
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Eric BOUXIROT" <ri****@rickou. net> wrote in message
> news:41******** **************@ news.free.fr...
>> hi there,
>>
>> i'm working on a smart application project on VB.NET. i must call API
>> (custom eVC++ DLL) but i have some trouble with mashalas
>> attribute.....
>> i have copy/past a sample on msdn help but it's not working..
>> IDE says "unknown 'mashalAs' attribute"..... and i don't know why....
>>
>> i have try exactly the same code on a normal windows project and it work >> (compile) fine...
>>
>> i don't know what i've missed....
>>
>> here some lines of my code...
>>
>> thank a lot...
>>
>> Imports System.Runtime. InteropServices
>>
>> Public Class Form1
>>
>> Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
>> IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg As
>> String) As Int32
>>
>>
>
>



Nov 21 '05 #5
Use the Encoding class to change it.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
yes i have already test this....it's ok but in my VB code i can't directly
convert String to byte array..

like this..
DLLFunction ("Toto".tobytea rray)

i must declare one byte array then fill it with the string chars....then
call my function...
Dim bytearray(50) as byte
convertstring2b ytearray ("toto",bytearr ay)
DLLFunction(byt earray)

i prefer the first method....but how i can implement the toByteArray method to the string class ?

thank a lot .

"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le message de news: Ow************* *@TK2MSFTNGP15. phx.gbl...
Pass a byte array.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
oh ok.....

thank, but i have one more question...
in my eVC++ DLL some functions use non-unicode strings (unsigned char*)

how i can tell VB to call DLL with non-UNICODE string format ?

thank a lot !
"Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le
message
de news: uH************* *@TK2MSFTNGP09. phx.gbl...
> MarshalAs attribute is not supported in CF - simply drop it, and your
> string will be passed as LPCWSTR (note the constant part)
> As for a byte array, replace ByRef with ByVal - the array will be
> passed
> down as LPBYTE
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Eric BOUXIROT" <ri****@rickou. net> wrote in message
> news:41******** **************@ news.free.fr...
>> hi there,
>>
>> i'm working on a smart application project on VB.NET. i must call API >> (custom eVC++ DLL) but i have some trouble with mashalas
>> attribute.....
>> i have copy/past a sample on msdn help but it's not working..
>> IDE says "unknown 'mashalAs' attribute"..... and i don't know why....
>>
>> i have try exactly the same code on a normal windows project and it

work
>> (compile) fine...
>>
>> i don't know what i've missed....
>>
>> here some lines of my code...
>>
>> thank a lot...
>>
>> Imports System.Runtime. InteropServices
>>
>> Public Class Form1
>>
>> Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
>> IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg As
>> String) As Int32
>>
>>
>
>



Nov 21 '05 #6
an small example ?

thank a lot !
"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le message
de news: Oa************* *@TK2MSFTNGP15. phx.gbl...
Use the Encoding class to change it.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
yes i have already test this....it's ok but in my VB code i can't
directly
convert String to byte array..

like this..
DLLFunction ("Toto".tobytea rray)

i must declare one byte array then fill it with the string chars....then
call my function...
Dim bytearray(50) as byte
convertstring2b ytearray ("toto",bytearr ay)
DLLFunction(byt earray)

i prefer the first method....but how i can implement the toByteArray

method
to the string class ?

thank a lot .

"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le

message
de news: Ow************* *@TK2MSFTNGP15. phx.gbl...
> Pass a byte array.
>
> -Chris
>
>
> "Eric BOUXIROT" <ri****@rickou. net> wrote in message
> news:41******** **************@ news.free.fr...
>> oh ok.....
>>
>> thank, but i have one more question...
>> in my eVC++ DLL some functions use non-unicode strings (unsigned
>> char*)
>>
>> how i can tell VB to call DLL with non-UNICODE string format ?
>>
>> thank a lot !
>>
>>
>> "Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le
>> message
>> de news: uH************* *@TK2MSFTNGP09. phx.gbl...
>> > MarshalAs attribute is not supported in CF - simply drop it, and
>> > your
>> > string will be passed as LPCWSTR (note the constant part)
>> > As for a byte array, replace ByRef with ByVal - the array will be
>> > passed
>> > down as LPBYTE
>> >
>> > --
>> > Alex Feinman
>> > ---
>> > Visit http://www.opennetcf.org
>> > "Eric BOUXIROT" <ri****@rickou. net> wrote in message
>> > news:41******** **************@ news.free.fr...
>> >> hi there,
>> >>
>> >> i'm working on a smart application project on VB.NET. i must call API >> >> (custom eVC++ DLL) but i have some trouble with mashalas
>> >> attribute.....
>> >> i have copy/past a sample on msdn help but it's not working..
>> >> IDE says "unknown 'mashalAs' attribute"..... and i don't know
>> >> why....
>> >>
>> >> i have try exactly the same code on a normal windows project and it
> work
>> >> (compile) fine...
>> >>
>> >> i don't know what i've missed....
>> >>
>> >> here some lines of my code...
>> >>
>> >> thank a lot...
>> >>
>> >> Imports System.Runtime. InteropServices
>> >>
>> >> Public Class Form1
>> >>
>> >> Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef
>> >> IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg
>> >> As
>> >> String) As Int32
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #7
Dim chars as Byte() = System.Text.Enc oding.ASCII.Get Bytes(myString)
THis is what you need to pass down to the unmanaged code

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
an small example ?

thank a lot !
"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le
message de news: Oa************* *@TK2MSFTNGP15. phx.gbl...
Use the Encoding class to change it.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
yes i have already test this....it's ok but in my VB code i can't
directly
convert String to byte array..

like this..
DLLFunction ("Toto".tobytea rray)

i must declare one byte array then fill it with the string chars....then
call my function...
Dim bytearray(50) as byte
convertstring2b ytearray ("toto",bytearr ay)
DLLFunction(byt earray)

i prefer the first method....but how i can implement the toByteArray

method
to the string class ?

thank a lot .

"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le

message
de news: Ow************* *@TK2MSFTNGP15. phx.gbl...
> Pass a byte array.
>
> -Chris
>
>
> "Eric BOUXIROT" <ri****@rickou. net> wrote in message
> news:41******** **************@ news.free.fr...
>> oh ok.....
>>
>> thank, but i have one more question...
>> in my eVC++ DLL some functions use non-unicode strings (unsigned
>> char*)
>>
>> how i can tell VB to call DLL with non-UNICODE string format ?
>>
>> thank a lot !
>>
>>
>> "Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le
>> message
>> de news: uH************* *@TK2MSFTNGP09. phx.gbl...
>> > MarshalAs attribute is not supported in CF - simply drop it, and
>> > your
>> > string will be passed as LPCWSTR (note the constant part)
>> > As for a byte array, replace ByRef with ByVal - the array will be
>> > passed
>> > down as LPBYTE
>> >
>> > --
>> > Alex Feinman
>> > ---
>> > Visit http://www.opennetcf.org
>> > "Eric BOUXIROT" <ri****@rickou. net> wrote in message
>> > news:41******** **************@ news.free.fr...
>> >> hi there,
>> >>
>> >> i'm working on a smart application project on VB.NET. i must call

API
>> >> (custom eVC++ DLL) but i have some trouble with mashalas
>> >> attribute.....
>> >> i have copy/past a sample on msdn help but it's not working..
>> >> IDE says "unknown 'mashalAs' attribute"..... and i don't know
>> >> why....
>> >>
>> >> i have try exactly the same code on a normal windows project and
>> >> it
> work
>> >> (compile) fine...
>> >>
>> >> i don't know what i've missed....
>> >>
>> >> here some lines of my code...
>> >>
>> >> thank a lot...
>> >>
>> >> Imports System.Runtime. InteropServices
>> >>
>> >> Public Class Form1
>> >>
>> >> Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l"
>> >> (ByRef
>> >> IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg
>> >> As
>> >> String) As Int32
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #8
Take a look at the sample in MSDN:

http://msdn.microsoft.com/library/en...nvertTopic.asp
-Chris

"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
an small example ?

thank a lot !
"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le message de news: Oa************* *@TK2MSFTNGP15. phx.gbl...
Use the Encoding class to change it.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
yes i have already test this....it's ok but in my VB code i can't
directly
convert String to byte array..

like this..
DLLFunction ("Toto".tobytea rray)

i must declare one byte array then fill it with the string chars....then call my function...
Dim bytearray(50) as byte
convertstring2b ytearray ("toto",bytearr ay)
DLLFunction(byt earray)

i prefer the first method....but how i can implement the toByteArray

method
to the string class ?

thank a lot .

"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le

message
de news: Ow************* *@TK2MSFTNGP15. phx.gbl...
> Pass a byte array.
>
> -Chris
>
>
> "Eric BOUXIROT" <ri****@rickou. net> wrote in message
> news:41******** **************@ news.free.fr...
>> oh ok.....
>>
>> thank, but i have one more question...
>> in my eVC++ DLL some functions use non-unicode strings (unsigned
>> char*)
>>
>> how i can tell VB to call DLL with non-UNICODE string format ?
>>
>> thank a lot !
>>
>>
>> "Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le
>> message
>> de news: uH************* *@TK2MSFTNGP09. phx.gbl...
>> > MarshalAs attribute is not supported in CF - simply drop it, and
>> > your
>> > string will be passed as LPCWSTR (note the constant part)
>> > As for a byte array, replace ByRef with ByVal - the array will be
>> > passed
>> > down as LPBYTE
>> >
>> > --
>> > Alex Feinman
>> > ---
>> > Visit http://www.opennetcf.org
>> > "Eric BOUXIROT" <ri****@rickou. net> wrote in message
>> > news:41******** **************@ news.free.fr...
>> >> hi there,
>> >>
>> >> i'm working on a smart application project on VB.NET. i must call

API
>> >> (custom eVC++ DLL) but i have some trouble with mashalas
>> >> attribute.....
>> >> i have copy/past a sample on msdn help but it's not working..
>> >> IDE says "unknown 'mashalAs' attribute"..... and i don't know
>> >> why....
>> >>
>> >> i have try exactly the same code on a normal windows project and it > work
>> >> (compile) fine...
>> >>
>> >> i don't know what i've missed....
>> >>
>> >> here some lines of my code...
>> >>
>> >> thank a lot...
>> >>
>> >> Imports System.Runtime. InteropServices
>> >>
>> >> Public Class Form1
>> >>
>> >> Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l" (ByRef >> >> IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg
>> >> As
>> >> String) As Int32
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #9
ok thank a lot for your very quick answers...
it work fine....

"Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le message
de news: eS************* @tk2msftngp13.p hx.gbl...
Dim chars as Byte() = System.Text.Enc oding.ASCII.Get Bytes(myString)
THis is what you need to pass down to the unmanaged code

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
an small example ?

thank a lot !
"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le
message de news: Oa************* *@TK2MSFTNGP15. phx.gbl...
Use the Encoding class to change it.

-Chris
"Eric BOUXIROT" <ri****@rickou. net> wrote in message
news:41******** **************@ news.free.fr...
yes i have already test this....it's ok but in my VB code i can't
directly
convert String to byte array..

like this..
DLLFunction ("Toto".tobytea rray)

i must declare one byte array then fill it with the string
chars....then
call my function...
Dim bytearray(50) as byte
convertstring2b ytearray ("toto",bytearr ay)
DLLFunction(byt earray)

i prefer the first method....but how i can implement the toByteArray
method
to the string class ?

thank a lot .

"Chris Tacke, eMVP" <ct****@spamfre e-opennetcf.org> a écrit dans le
message
de news: Ow************* *@TK2MSFTNGP15. phx.gbl...
> Pass a byte array.
>
> -Chris
>
>
> "Eric BOUXIROT" <ri****@rickou. net> wrote in message
> news:41******** **************@ news.free.fr...
>> oh ok.....
>>
>> thank, but i have one more question...
>> in my eVC++ DLL some functions use non-unicode strings (unsigned
>> char*)
>>
>> how i can tell VB to call DLL with non-UNICODE string format ?
>>
>> thank a lot !
>>
>>
>> "Alex Feinman [MVP]" <pu*********@al exfeinman.com> a écrit dans le
>> message
>> de news: uH************* *@TK2MSFTNGP09. phx.gbl...
>> > MarshalAs attribute is not supported in CF - simply drop it, and
>> > your
>> > string will be passed as LPCWSTR (note the constant part)
>> > As for a byte array, replace ByRef with ByVal - the array will be
>> > passed
>> > down as LPBYTE
>> >
>> > --
>> > Alex Feinman
>> > ---
>> > Visit http://www.opennetcf.org
>> > "Eric BOUXIROT" <ri****@rickou. net> wrote in message
>> > news:41******** **************@ news.free.fr...
>> >> hi there,
>> >>
>> >> i'm working on a smart application project on VB.NET. i must call
API
>> >> (custom eVC++ DLL) but i have some trouble with mashalas
>> >> attribute.....
>> >> i have copy/past a sample on msdn help but it's not working..
>> >> IDE says "unknown 'mashalAs' attribute"..... and i don't know
>> >> why....
>> >>
>> >> i have try exactly the same code on a normal windows project and
>> >> it
> work
>> >> (compile) fine...
>> >>
>> >> i don't know what i've missed....
>> >>
>> >> here some lines of my code...
>> >>
>> >> thank a lot...
>> >>
>> >> Imports System.Runtime. InteropServices
>> >>
>> >> Public Class Form1
>> >>
>> >> Public Declare Function F_BDO_MessageBo xOK Lib "PDA_BDO.dl l"
>> >> (ByRef
>> >> IN_title() As Byte, <MarshalAs(Unma nagedType.LPStr )> ByRef IN_msg
>> >> As
>> >> String) As Int32
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2431
by: devgru | last post by:
I've developed several programs for the Pocket PC in eMbedded Visual C (API calls only, no MFC). All of these programs made use of a third-party DLL called SecureTrial (www.zedev.com) to create 30-day trial versions of the programs. The DLL was loaded dynamically at run-time using LoadLibrary and GetProcAddress, as shown in the code below. For the SecureTrial library, all I have are .DLL files compiled for the MIPS, ARM, and SH3...
0
1053
by: SkyRender | last post by:
Hello. I'm currently developing an application in eVC++ which will be compiled as a DLL and included in a VB.NET PocetPC program. I compile in eVC++ having included the sms.h header file and having linked to the sms.lib library. Here's my code for the OpenSMSHandle function: UNMANAGED_API bool OpenSMSHandle() { SMS_HANDLE hSms = NULL;
0
1320
by: Systems001 | last post by:
Anyone had these issues with EVC 4 Debugger? When debugging to an actual unit (in this case, Dell Axim, CE OS V4) The debugger will only stop on occasion at break points, if at all. And once you do get a good stop, as soon as you attempt to Step, the application just continues without stepping to the next line.
0
1846
by: Boris | last post by:
I install embeeded visual C++ sp2 (eVC 4.0) on new instalation of windows XP pro en SP1 () (with no update). Then I to install SDK for windows ce dot.net 4.2. Installation failed with error message : vbscript (window) "failed to initialize property bag" Thank you. Boris
0
950
by: drblow | last post by:
Hi there! I'm new here, and I'm just starting to learn a little about coding, so please be gentle with me! :0) I have DL'ed EVC++4 from MS, and installed it OK. But when I try to create a new WCE Dynamic-Link Library project, the application hangs completely. Looking in task manager shows CPU usage at 100%, & 2 copies of EVC++4 not responding. It does create the workspace files in the folder I specified, but when I try to open them,...
1
1158
by: Eric BOUXIROT | last post by:
hi there, i have som etrouble when i call a custom DLL (made with eVC++) ..my function take char* (non unicode) to display it (after convert to unicode) DLLEXPORT long F_BDO_MessageBoxOK(char *IN_title, char *IN_msg ) The declare is Public Declare Function F_BDO_MessageBoxOK Lib "PDA_BDO.dll" (ByVal IN_title() As Byte, ByVal IN_msg() As Byte) As Int32
3
2260
by: Eric BOUXIROT | last post by:
hi, i must convert all of these eVC++ prototypes to use with VB.NET.... DLLEXPORT long F_BDO_MessageBoxOK(char *IN_title, char *IN_msg ); DLLEXPORT long F_BDO_MessageBoxOUINON(char *IN_title, char *IN_msg ); DLLEXPORT long F_BDO_CalculAXplusB(short int *IN_Tab_entree ,int IN_taille , double *OUT_Tab_sortie_freq , double *OUT_Tab_sortie, double IN_A,
0
1064
by: Eric BOUXIROT | last post by:
hi there, i want to debug a dll made with EVC++. the application is under VB.NET. in EVC++ project settings i have set this : in debug tab i set in category general remote executable path and filename = path and exe name of my app. in category Additional DLLs i have add my DLL.and check Try to locate other DLLs when i launch the EVC++ project...it start the VB application.good and EVC
0
982
by: Rick | last post by:
hi all ! i need your HELP ! (it's long to explain but it's needed) i have a big problem (for me) with my APP/DLL i have made an Application with VB.NET for Compact framework that call an DLL written in eVC++ 4. the pb is i get a "First-chance exception ... Access violation" sometimes...
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10320
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10308
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.