473,799 Members | 3,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can C# Call This DLL?

I need to call a Win32 DLL. The API supports both Windows and Linux, but
I'm only concerned with Windows. I'd like advice whether I can use C# or
whether I'll have to dust off my old C++ books. I would prefer to learn C#
rather than go back to C++.

The API starts with

#ifdef (WIN32)
#define MyAPI __stdcall
#else
#define MyAPI
#endif

There are bitmap mask #define statements.

All integer values are little-endian.

There are many "typedef" and "typedef struct" statements with char, const,
void, sint8, uint8, uint16, uint32, and sint32 elements, arrays and
pointers.

There are "typedef struct" statements with union elements.

To ease cross-platform use, the API defines its own memory management. This
is one typedef:

typedef void * (MyAPI *MyAPI_REALLOC)
(void * Memblock,
uint32 Size,
void * Allocref);

And the part I'm the least sure can be done in C# is the asynchronous event
mechanism. Here is one of the typefefs.

typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
(const MyAPI_UUID *UUID,
void* AppNotifyCallba ckCtx,
MyAPI_ID ID,
uint32 Reserved,
MyAPI_Event EventType);

Can C# easily work with this API? (*)

Thanks!

-- Mark

(*) Several years ago I wrote some ugly VB6 code to deal with a DLL that had
VB-unfriendly pointers and unicode strings. Therefore I assume it is
"possible" to use this DLL from C#. I guess I'm asking whether or not it is
"easy" or "reasonable " to call the DLL from C#.
Nov 16 '05 #1
6 1656
Mark,

While you are using the stdcall convention for the functions, it's not
possible to tell whether or not you are exploring the functions correctly.
My guess is that yes, the functions are exported correctly, so you should
have no problem using this.

However, the only thing that is of concern is the memory management
routine. It looks like there is a routine for allocating memory, but I
can't see anything for deallocating memory. If you have that defined, then
you should be alright.

Other than that, there is no reason why you shouldn't be able to use
this from .NET.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I need to call a Win32 DLL. The API supports both Windows and Linux, but
I'm only concerned with Windows. I'd like advice whether I can use C# or
whether I'll have to dust off my old C++ books. I would prefer to learn
C#
rather than go back to C++.

The API starts with

#ifdef (WIN32)
#define MyAPI __stdcall
#else
#define MyAPI
#endif

There are bitmap mask #define statements.

All integer values are little-endian.

There are many "typedef" and "typedef struct" statements with char, const,
void, sint8, uint8, uint16, uint32, and sint32 elements, arrays and
pointers.

There are "typedef struct" statements with union elements.

To ease cross-platform use, the API defines its own memory management.
This
is one typedef:

typedef void * (MyAPI *MyAPI_REALLOC)
(void * Memblock,
uint32 Size,
void * Allocref);

And the part I'm the least sure can be done in C# is the asynchronous
event
mechanism. Here is one of the typefefs.

typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
(const MyAPI_UUID *UUID,
void* AppNotifyCallba ckCtx,
MyAPI_ID ID,
uint32 Reserved,
MyAPI_Event EventType);

Can C# easily work with this API? (*)

Thanks!

-- Mark

(*) Several years ago I wrote some ugly VB6 code to deal with a DLL that
had
VB-unfriendly pointers and unicode strings. Therefore I assume it is
"possible" to use this DLL from C#. I guess I'm asking whether or not it
is
"easy" or "reasonable " to call the DLL from C#.

Nov 16 '05 #2
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

While you are using the stdcall convention for the functions,
it's not possible to tell whether or not you are exploring the
functions correctly. My guess is that yes, the functions are exported
correctly, so you should have no problem using this.

However, the only thing that is of concern is the memory
management routine. It looks like there is a routine for allocating
memory, but I can't see anything for deallocating memory. If you
have that defined, then you should be alright.
I just typed one of the five typedefs. There are the standard
*MyAPI_MALLOC, *MyAPI_FREE, *MyAPI_REALLOC and *MyAPI_CALLOC. There is also
a "wrapper" typedef:

typedef struct MyAPI_memory_fu nctions {
MyAPI_MALLOC Malloc_func;
MyAPI_FREE Free_func;
MyAPI_REALLOC Realloc_func;
MyAPI_CALLOC Calloc_func;
void *AllocRef;
} MyAPI_MEMORY_FU NCS, *MyAPI_MEM_FUNC S_PTR;
Other than that, there is no reason why you shouldn't be able to
use this from .NET.

Hope this helps.
It does indeed. I get to learn something new. Thanks.

-- Mark
"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I need to call a Win32 DLL. The API supports both Windows and
Linux, but I'm only concerned with Windows. I'd like advice whether
I can use C# or whether I'll have to dust off my old C++ books. I
would prefer to learn C#
rather than go back to C++.

The API starts with

#ifdef (WIN32)
#define MyAPI __stdcall
#else
#define MyAPI
#endif

There are bitmap mask #define statements.

All integer values are little-endian.

There are many "typedef" and "typedef struct" statements with char,
const, void, sint8, uint8, uint16, uint32, and sint32 elements,
arrays and pointers.

There are "typedef struct" statements with union elements.

To ease cross-platform use, the API defines its own memory
management. This
is one typedef:

typedef void * (MyAPI *MyAPI_REALLOC)
(void * Memblock,
uint32 Size,
void * Allocref);

And the part I'm the least sure can be done in C# is the asynchronous
event
mechanism. Here is one of the typefefs.

typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
(const MyAPI_UUID *UUID,
void* AppNotifyCallba ckCtx,
MyAPI_ID ID,
uint32 Reserved,
MyAPI_Event EventType);

Can C# easily work with this API? (*)

Thanks!

-- Mark

(*) Several years ago I wrote some ugly VB6 code to deal with a DLL
that had
VB-unfriendly pointers and unicode strings. Therefore I assume it is
"possible" to use this DLL from C#. I guess I'm asking whether or
not it is
"easy" or "reasonable " to call the DLL from C#.

Nov 16 '05 #3
Mark,

You aren't going to be able to use function pointers in .NET 1.1 or
before. If that is how your API is defining the memory management
functions, then you will not be able to use it.

However, in .NET 2.0, you will be able to take a pointer in memory, and
assign it to a delegate, which you can then call from managed code. If you
can get this pointer from your API, then getting a callable delegate is
very, very simple.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:OH******** *****@TK2MSFTNG P15.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

While you are using the stdcall convention for the functions,
it's not possible to tell whether or not you are exploring the
functions correctly. My guess is that yes, the functions are exported
correctly, so you should have no problem using this.

However, the only thing that is of concern is the memory
management routine. It looks like there is a routine for allocating
memory, but I can't see anything for deallocating memory. If you
have that defined, then you should be alright.


I just typed one of the five typedefs. There are the standard
*MyAPI_MALLOC, *MyAPI_FREE, *MyAPI_REALLOC and *MyAPI_CALLOC. There is
also
a "wrapper" typedef:

typedef struct MyAPI_memory_fu nctions {
MyAPI_MALLOC Malloc_func;
MyAPI_FREE Free_func;
MyAPI_REALLOC Realloc_func;
MyAPI_CALLOC Calloc_func;
void *AllocRef;
} MyAPI_MEMORY_FU NCS, *MyAPI_MEM_FUNC S_PTR;
Other than that, there is no reason why you shouldn't be able to
use this from .NET.

Hope this helps.


It does indeed. I get to learn something new. Thanks.

-- Mark
"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I need to call a Win32 DLL. The API supports both Windows and
Linux, but I'm only concerned with Windows. I'd like advice whether
I can use C# or whether I'll have to dust off my old C++ books. I
would prefer to learn C#
rather than go back to C++.

The API starts with

#ifdef (WIN32)
#define MyAPI __stdcall
#else
#define MyAPI
#endif

There are bitmap mask #define statements.

All integer values are little-endian.

There are many "typedef" and "typedef struct" statements with char,
const, void, sint8, uint8, uint16, uint32, and sint32 elements,
arrays and pointers.

There are "typedef struct" statements with union elements.

To ease cross-platform use, the API defines its own memory
management. This
is one typedef:

typedef void * (MyAPI *MyAPI_REALLOC)
(void * Memblock,
uint32 Size,
void * Allocref);

And the part I'm the least sure can be done in C# is the asynchronous
event
mechanism. Here is one of the typefefs.

typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
(const MyAPI_UUID *UUID,
void* AppNotifyCallba ckCtx,
MyAPI_ID ID,
uint32 Reserved,
MyAPI_Event EventType);

Can C# easily work with this API? (*)

Thanks!

-- Mark

(*) Several years ago I wrote some ugly VB6 code to deal with a DLL
that had
VB-unfriendly pointers and unicode strings. Therefore I assume it is
"possible" to use this DLL from C#. I guess I'm asking whether or
not it is
"easy" or "reasonable " to call the DLL from C#.


Nov 16 '05 #4
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

You aren't going to be able to use function pointers in .NET 1.1
or before. If that is how your API is defining the memory management
functions, then you will not be able to use it.
Bummer. They can't be called from C# unmanaged code either?
However, in .NET 2.0, you will be able to take a pointer in
memory, and assign it to a delegate, which you can then call from
managed code. If you can get this pointer from your API, then
getting a callable delegate is very, very simple.
My MSDN subscription has lapsed so this doesn't appear to be an option.
Plus they are betas and I need to distribute the app to users.

-- Mark

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:OH******** *****@TK2MSFTNG P15.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

While you are using the stdcall convention for the functions,
it's not possible to tell whether or not you are exploring the
functions correctly. My guess is that yes, the functions are
exported correctly, so you should have no problem using this.

However, the only thing that is of concern is the memory
management routine. It looks like there is a routine for allocating
memory, but I can't see anything for deallocating memory. If you
have that defined, then you should be alright.


I just typed one of the five typedefs. There are the standard
*MyAPI_MALLOC, *MyAPI_FREE, *MyAPI_REALLOC and *MyAPI_CALLOC. There
is also
a "wrapper" typedef:

typedef struct MyAPI_memory_fu nctions {
MyAPI_MALLOC Malloc_func;
MyAPI_FREE Free_func;
MyAPI_REALLOC Realloc_func;
MyAPI_CALLOC Calloc_func;
void *AllocRef;
} MyAPI_MEMORY_FU NCS, *MyAPI_MEM_FUNC S_PTR;
Other than that, there is no reason why you shouldn't be able to
use this from .NET.

Hope this helps.


It does indeed. I get to learn something new. Thanks.

-- Mark
"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I need to call a Win32 DLL. The API supports both Windows and
Linux, but I'm only concerned with Windows. I'd like advice
whether I can use C# or whether I'll have to dust off my old C++
books. I would prefer to learn C#
rather than go back to C++.

The API starts with

#ifdef (WIN32)
#define MyAPI __stdcall
#else
#define MyAPI
#endif

There are bitmap mask #define statements.

All integer values are little-endian.

There are many "typedef" and "typedef struct" statements with char,
const, void, sint8, uint8, uint16, uint32, and sint32 elements,
arrays and pointers.

There are "typedef struct" statements with union elements.

To ease cross-platform use, the API defines its own memory
management. This
is one typedef:

typedef void * (MyAPI *MyAPI_REALLOC)
(void * Memblock,
uint32 Size,
void * Allocref);

And the part I'm the least sure can be done in C# is the
asynchronous event
mechanism. Here is one of the typefefs.

typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
(const MyAPI_UUID *UUID,
void* AppNotifyCallba ckCtx,
MyAPI_ID ID,
uint32 Reserved,
MyAPI_Event EventType);

Can C# easily work with this API? (*)

Thanks!

-- Mark

(*) Several years ago I wrote some ugly VB6 code to deal with a DLL
that had
VB-unfriendly pointers and unicode strings. Therefore I assume it
is "possible" to use this DLL from C#. I guess I'm asking whether
or not it is
"easy" or "reasonable " to call the DLL from C#.

Nov 16 '05 #5
Mark,

If you do not have function definitions that are not exported, then in
..NET 1.1, you won't be able to make a call.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:uU******** *****@TK2MSFTNG P09.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

You aren't going to be able to use function pointers in .NET 1.1
or before. If that is how your API is defining the memory management
functions, then you will not be able to use it.


Bummer. They can't be called from C# unmanaged code either?
However, in .NET 2.0, you will be able to take a pointer in
memory, and assign it to a delegate, which you can then call from
managed code. If you can get this pointer from your API, then
getting a callable delegate is very, very simple.


My MSDN subscription has lapsed so this doesn't appear to be an option.
Plus they are betas and I need to distribute the app to users.

-- Mark

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:OH******** *****@TK2MSFTNG P15.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

While you are using the stdcall convention for the functions,
it's not possible to tell whether or not you are exploring the
functions correctly. My guess is that yes, the functions are
exported correctly, so you should have no problem using this.

However, the only thing that is of concern is the memory
management routine. It looks like there is a routine for allocating
memory, but I can't see anything for deallocating memory. If you
have that defined, then you should be alright.

I just typed one of the five typedefs. There are the standard
*MyAPI_MALLOC, *MyAPI_FREE, *MyAPI_REALLOC and *MyAPI_CALLOC. There
is also
a "wrapper" typedef:

typedef struct MyAPI_memory_fu nctions {
MyAPI_MALLOC Malloc_func;
MyAPI_FREE Free_func;
MyAPI_REALLOC Realloc_func;
MyAPI_CALLOC Calloc_func;
void *AllocRef;
} MyAPI_MEMORY_FU NCS, *MyAPI_MEM_FUNC S_PTR;

Other than that, there is no reason why you shouldn't be able to
use this from .NET.

Hope this helps.

It does indeed. I get to learn something new. Thanks.

-- Mark

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> I need to call a Win32 DLL. The API supports both Windows and
> Linux, but I'm only concerned with Windows. I'd like advice
> whether I can use C# or whether I'll have to dust off my old C++
> books. I would prefer to learn C#
> rather than go back to C++.
>
> The API starts with
>
> #ifdef (WIN32)
> #define MyAPI __stdcall
> #else
> #define MyAPI
> #endif
>
> There are bitmap mask #define statements.
>
> All integer values are little-endian.
>
> There are many "typedef" and "typedef struct" statements with char,
> const, void, sint8, uint8, uint16, uint32, and sint32 elements,
> arrays and pointers.
>
> There are "typedef struct" statements with union elements.
>
> To ease cross-platform use, the API defines its own memory
> management. This
> is one typedef:
>
> typedef void * (MyAPI *MyAPI_REALLOC)
> (void * Memblock,
> uint32 Size,
> void * Allocref);
>
> And the part I'm the least sure can be done in C# is the
> asynchronous event
> mechanism. Here is one of the typefefs.
>
> typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
> (const MyAPI_UUID *UUID,
> void* AppNotifyCallba ckCtx,
> MyAPI_ID ID,
> uint32 Reserved,
> MyAPI_Event EventType);
>
> Can C# easily work with this API? (*)
>
> Thanks!
>
> -- Mark
>
> (*) Several years ago I wrote some ugly VB6 code to deal with a DLL
> that had
> VB-unfriendly pointers and unicode strings. Therefore I assume it
> is "possible" to use this DLL from C#. I guess I'm asking whether
> or not it is
> "easy" or "reasonable " to call the DLL from C#.


Nov 16 '05 #6
Maybe I'm mising something, but I don't think you need to pass function
pointers to C++, the memory management functions are implemented in native
C++ code and called from C++ don't they?

Willy.

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:uU******** *****@TK2MSFTNG P09.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

You aren't going to be able to use function pointers in .NET 1.1
or before. If that is how your API is defining the memory management
functions, then you will not be able to use it.


Bummer. They can't be called from C# unmanaged code either?
However, in .NET 2.0, you will be able to take a pointer in
memory, and assign it to a delegate, which you can then call from
managed code. If you can get this pointer from your API, then
getting a callable delegate is very, very simple.


My MSDN subscription has lapsed so this doesn't appear to be an option.
Plus they are betas and I need to distribute the app to users.

-- Mark

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:OH******** *****@TK2MSFTNG P15.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Mark,

While you are using the stdcall convention for the functions,
it's not possible to tell whether or not you are exploring the
functions correctly. My guess is that yes, the functions are
exported correctly, so you should have no problem using this.

However, the only thing that is of concern is the memory
management routine. It looks like there is a routine for allocating
memory, but I can't see anything for deallocating memory. If you
have that defined, then you should be alright.

I just typed one of the five typedefs. There are the standard
*MyAPI_MALLOC, *MyAPI_FREE, *MyAPI_REALLOC and *MyAPI_CALLOC. There
is also
a "wrapper" typedef:

typedef struct MyAPI_memory_fu nctions {
MyAPI_MALLOC Malloc_func;
MyAPI_FREE Free_func;
MyAPI_REALLOC Realloc_func;
MyAPI_CALLOC Calloc_func;
void *AllocRef;
} MyAPI_MEMORY_FU NCS, *MyAPI_MEM_FUNC S_PTR;

Other than that, there is no reason why you shouldn't be able to
use this from .NET.

Hope this helps.

It does indeed. I get to learn something new. Thanks.

-- Mark

"Mark Jerde" <ma********@ver izon.no.spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> I need to call a Win32 DLL. The API supports both Windows and
> Linux, but I'm only concerned with Windows. I'd like advice
> whether I can use C# or whether I'll have to dust off my old C++
> books. I would prefer to learn C#
> rather than go back to C++.
>
> The API starts with
>
> #ifdef (WIN32)
> #define MyAPI __stdcall
> #else
> #define MyAPI
> #endif
>
> There are bitmap mask #define statements.
>
> All integer values are little-endian.
>
> There are many "typedef" and "typedef struct" statements with char,
> const, void, sint8, uint8, uint16, uint32, and sint32 elements,
> arrays and pointers.
>
> There are "typedef struct" statements with union elements.
>
> To ease cross-platform use, the API defines its own memory
> management. This
> is one typedef:
>
> typedef void * (MyAPI *MyAPI_REALLOC)
> (void * Memblock,
> uint32 Size,
> void * Allocref);
>
> And the part I'm the least sure can be done in C# is the
> asynchronous event
> mechanism. Here is one of the typefefs.
>
> typedef MyAPI_RETURN (MyAPI *MyAPI_ModuleEv entHandler)
> (const MyAPI_UUID *UUID,
> void* AppNotifyCallba ckCtx,
> MyAPI_ID ID,
> uint32 Reserved,
> MyAPI_Event EventType);
>
> Can C# easily work with this API? (*)
>
> Thanks!
>
> -- Mark
>
> (*) Several years ago I wrote some ugly VB6 code to deal with a DLL
> that had
> VB-unfriendly pointers and unicode strings. Therefore I assume it
> is "possible" to use this DLL from C#. I guess I'm asking whether
> or not it is
> "easy" or "reasonable " to call the DLL from C#.


Nov 16 '05 #7

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

Similar topics

23
5186
by: Fabian Müller | last post by:
Hi all, my question is as follows: If have a class X and a class Y derived from X. Constructor of X is X(param1, param2) . Constructor of Y is Y(param1, ..., param4) .
35
10797
by: hasho | last post by:
Why is "call by address" faster than "call by value"?
13
4151
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make sense to punch out from managed code to native code (I was using IJW) in order to do some amount of floating point work and, if so, what that certain amount of floating point work was approximately. To attempt to do this I made a program that...
4
4296
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage I know I need to call a function that will save data but I'm not sure exactly when to call this function. I've tried two ways and both seem to have 'gotcha's':
5
3781
by: Amaryllis | last post by:
I'm trying to call a CL which is located on our AS400 from a Windows application. I've tried to code it in different ways, but I seem to get the same error every time. Does anyone have any clue as to what this means? I am not trying to alter a table. This particular CL merely generates the next voucher number in a sequence. "SQL0204: HRCU030P in HRZNCUSOBJ type *N not found. Cause . . . . . : HRCU030P in HRZNCUSOBJ type *N was...
13
26601
by: mitchellpal | last post by:
i am really having a hard time trying to differentiate the two..........i mean.....anyone got a better idea how each occurs?
13
9730
by: shsingh | last post by:
I have a class A containing some map as data variables. I creat an object of class A on heap by allocatiing memory by using "malloc". This will return me the required memory but the object is not initialized properly as constructor same is not get called ( as per the behavior). How to call a constructor explicitly if we want to allocate memory using malloc ?
3
4788
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and filter out some values with RExx) and save the results into another DB? I know from Wscripts and MS-Sql that you can build just two objects but I did not see something like that in REXX. Thanks in advance for your help
9
3278
by: CryptiqueGuy | last post by:
Consider the variadic function with the following prototype: int foo(int num,...); Here 'num' specifies the number of arguments, and assume that all the arguments that should be passed to this function are of type int. (My question has nothing to do with the definition of the function foo, so don't bother about it.) If I call the function as: foo(2,3,4,5,6,7,8);/*More arguments than expected*/
12
7216
by: Rahul | last post by:
Hi Everyone, I have the following code and i'm able to invoke the destructor explicitly but not the constructor. and i get a compile time error when i invoke the constructor, why is this so? class Trial { public: Trial() {
0
9685
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
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
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...
0
9067
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
7561
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
6803
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();...
1
4135
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
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.