Click here to Skip to main content
15,916,693 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get ip address of my own system Pin
noumanzaidi6-May-06 1:39
noumanzaidi6-May-06 1:39 
AnswerRe: how to get ip address of my own system Pin
Hamid_RT6-May-06 1:48
Hamid_RT6-May-06 1:48 
AnswerRe: how to get ip address of my own system Pin
Mila0257-May-06 21:19
Mila0257-May-06 21:19 
Questionerror(plz give the solution for this) Pin
Reddyb6-May-06 1:26
Reddyb6-May-06 1:26 
AnswerRe: error(plz give the solution for this) Pin
Hamid_RT6-May-06 1:57
Hamid_RT6-May-06 1:57 
AnswerRe: error(plz give the solution for this) Pin
Cedric Moonen6-May-06 1:58
Cedric Moonen6-May-06 1:58 
AnswerRe: error(plz give the solution for this) Pin
guestcat6-May-06 2:17
guestcat6-May-06 2:17 
AnswerRe: error(plz give the solution for this) Pin
Hamid_RT6-May-06 4:50
Hamid_RT6-May-06 4:50 
Questiondll to source Pin
Try6-May-06 1:20
Try6-May-06 1:20 
AnswerRe: dll to source Pin
Milton Karimbekallil6-May-06 1:42
Milton Karimbekallil6-May-06 1:42 
AnswerRe: dll to source Pin
Chris Losinger6-May-06 16:12
professionalChris Losinger6-May-06 16:12 
QuestionRe: dll to source code Pin
Try8-May-06 19:20
Try8-May-06 19:20 
AnswerRe: Problem in print Pin
tbrake6-May-06 9:51
tbrake6-May-06 9:51 
QuestionIntegrating c# code in vc++.net Pin
Ashraj19826-May-06 0:51
Ashraj19826-May-06 0:51 
AnswerRe: Integrating c# code in vc++.net Pin
Milton Karimbekallil6-May-06 1:29
Milton Karimbekallil6-May-06 1:29 
GeneralRe: Integrating c# code in vc++.net Pin
Ashraj19827-May-06 18:33
Ashraj19827-May-06 18:33 
QuestionCasting a pointer to an unmanaged const void* Pin
Ilkka Pitkänen6-May-06 0:48
Ilkka Pitkänen6-May-06 0:48 
I am trying to convert an old application (VB3, NT4, RDM4.5) to C++2005, Win2003Server and RDM7.dll(programmed with native C++). I can export the DB functions and data without problems but trying to access the data with a key, I get errors. I have been using

#include "stdio.h"
#include "vcclr.h"
using namespace System::Runtime::InteropServices;
- - - - -
[DllImport("rdm7.dll", EntryPoint = "d_keyfind", CharSet = CharSet::Ansi)...]
extern "C" int d_keyfind(long, const void *, DB_TASK *, int);
- - - - -
String ^crpt = Currtmp.ToString();
pin_ptr<const wchar_t=""> tnoptr = PtrToStringChars(crpt);
- - - - -
d_keyfind(..., tnoptr, ...)

the program compiles without errors, runs other functions correctly, but with this d-keyfind I receive a KEY_NOT_FOUND error allthough Currtmp(long) is read with other functions from a real and existing record in the data base and although the direct access facility program (programmed in native code) reads the key value correctly and returns correct data.

Could anyone perhaps see what is my error here?
Thank you in advance!


I wonder if you can easily see an error here.

Ilkka Pitkänen
AnswerRe: Casting a pointer to an unmanaged const void* Pin
Milton Karimbekallil6-May-06 2:10
Milton Karimbekallil6-May-06 2:10 
GeneralRe: Casting a pointer to an unmanaged const void* Pin
Ilkka Pitkänen6-May-06 6:38
Ilkka Pitkänen6-May-06 6:38 
GeneralRe: Casting a pointer to an unmanaged const void* Pin
Ilkka Pitkänen6-May-06 21:43
Ilkka Pitkänen6-May-06 21:43 
Questiona question regarding CString Pin
namaskaaram6-May-06 0:22
namaskaaram6-May-06 0:22 
AnswerRe: a question regarding CString Pin
Mahesh Kulkarni6-May-06 0:50
Mahesh Kulkarni6-May-06 0:50 
AnswerRe: a question regarding CString Pin
ThatsAlok6-May-06 23:07
ThatsAlok6-May-06 23:07 
QuestionHTML Interface Pin
kk.tvm5-May-06 23:38
kk.tvm5-May-06 23:38 
AnswerRe: HTML Interface Pin
Hamid_RT6-May-06 0:24
Hamid_RT6-May-06 0:24 

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.