Click here to Skip to main content
14,881,351 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questioncalls to unmanaged dll to create a socket result in debug assertion Pin
moniqui16-Aug-06 8:52
Membermoniqui16-Aug-06 8:52 
AnswerRe: calls to unmanaged dll to create a socket result in debug assertion Pin
led mike16-Aug-06 8:59
Memberled mike16-Aug-06 8:59 
GeneralRe: calls to unmanaged dll to create a socket result in debug assertion Pin
moniqui17-Aug-06 3:40
Membermoniqui17-Aug-06 3:40 
GeneralRe: calls to unmanaged dll to create a socket result in debug assertion Pin
led mike17-Aug-06 6:07
Memberled mike17-Aug-06 6:07 
QuestionOpenFileDialog. 500 files to open? Pin
9ine16-Aug-06 3:58
Member9ine16-Aug-06 3:58 
Questionconneting to sql server 2000 or mysql 5.0 through c++ on windows platform Pin
248912816-Aug-06 1:21
Member248912816-Aug-06 1:21 
AnswerRe: conneting to sql server 2000 or mysql 5.0 through c++ on windows platform Pin
Christian Graus16-Aug-06 2:24
protectorChristian Graus16-Aug-06 2:24 
QuestionHow to send double value as 8 uint8 values?? Pin
cahit2316-Aug-06 1:17
Membercahit2316-Aug-06 1:17 
Hi all,

I am currently working on Serial Interface between a control box and PC and want to send/receive double values from Pc to the box as 8 uint8 values since the box only accepts in uint8 form.

For that i thought as follows : to get that double value (64 bits) in binary form and get the last 8 bits with &(and) operator and shifting bits to right till all bits are finished,namely :

double var;
char var2send[8]; % in array

var2send[0]= var & 0x00000000000000ff % last 8 bits with & operator
var>>8; %shifting bits
var2send[1]= var & 0x00000000000000ff
var>>8;
.
. % and sending this array as output
.
But in this code, i received an error that says i cant use double with & operators so that must be converted 64 bit long form!! How can i manage to do this?? or anyone has better way or suggestion?

I hope i could clearly explain my problem.

I would be very pleased if you could help me!

Thanks a lot!

Cahit
AnswerRe: How to send double value as 8 uint8 values?? Pin
Christian Graus16-Aug-06 2:25
protectorChristian Graus16-Aug-06 2:25 
GeneralRe: How to send double value as 8 uint8 values?? Pin
cahit2316-Aug-06 2:51
Membercahit2316-Aug-06 2:51 
QuestionGraphics::FromImage Pin
yiwpyos16-Aug-06 1:14
Memberyiwpyos16-Aug-06 1:14 
AnswerRe: Graphics::FromImage Pin
Christian Graus16-Aug-06 2:28
protectorChristian Graus16-Aug-06 2:28 
GeneralRe: Graphics::FromImage Pin
yiwpyos16-Aug-06 22:39
Memberyiwpyos16-Aug-06 22:39 
GeneralRe: Graphics::FromImage Pin
Christian Graus16-Aug-06 22:42
protectorChristian Graus16-Aug-06 22:42 
QuestionReceiving A Byte Array from dll? [modified] Pin
majidbhutta15-Aug-06 23:52
Membermajidbhutta15-Aug-06 23:52 
Questionpixil detection? Pin
Droze15-Aug-06 6:36
MemberDroze15-Aug-06 6:36 
AnswerRe: pixil detection? Pin
Jun Du17-Aug-06 5:15
MemberJun Du17-Aug-06 5:15 
GeneralRe: pixil detection? Pin
Droze17-Aug-06 10:56
MemberDroze17-Aug-06 10:56 
QuestionFax Routing, Please Help Pin
a_kiani15-Aug-06 2:16
Membera_kiani15-Aug-06 2:16 
AnswerRe: Fax Routing, Please Help Pin
Milton Karimbekallil15-Aug-06 18:22
MemberMilton Karimbekallil15-Aug-06 18:22 
QuestionHow can i use dll function in c++.net ? please help . Pin
nattafy15-Aug-06 1:39
Membernattafy15-Aug-06 1:39 
AnswerRe: How can i use dll function in c++.net ? please help . Pin
guestcat17-Aug-06 0:44
Memberguestcat17-Aug-06 0:44 
QuestionHow to stop USB Mass Storage Device window popping out Pin
mmhu11-Aug-06 4:35
Membermmhu11-Aug-06 4:35 
AnswerRe: How to stop USB Mass Storage Device window popping out Pin
Christian Graus14-Aug-06 18:26
protectorChristian Graus14-Aug-06 18:26 
GeneralRe: How to stop USB Mass Storage Device window popping out Pin
mmhu15-Aug-06 11:07
Membermmhu15-Aug-06 11:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.