Click here to Skip to main content
15,891,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Shell Icon Pin
pasztorpisti24-Aug-13 9:27
pasztorpisti24-Aug-13 9:27 
GeneralRe: Shell Icon Pin
Richard Andrew x6424-Aug-13 12:40
professionalRichard Andrew x6424-Aug-13 12:40 
GeneralRe: Shell Icon Pin
pasztorpisti25-Aug-13 0:24
pasztorpisti25-Aug-13 0:24 
QuestionMore CProperyPage blues – CEdit control Pin
Vaclav_23-Aug-13 16:54
Vaclav_23-Aug-13 16:54 
QuestionRe: More CProperyPage blues – CEdit control Pin
David Crow24-Aug-13 4:36
David Crow24-Aug-13 4:36 
AnswerRe: More CProperyPage blues – CEdit control Pin
Vaclav_24-Aug-13 5:17
Vaclav_24-Aug-13 5:17 
AnswerRe: More CProperyPage blues – CEdit control Pin
Vaclav_24-Aug-13 16:44
Vaclav_24-Aug-13 16:44 
QuestionI need some advice for a Python app calling a C++ library function. Pin
icestatue23-Aug-13 10:52
icestatue23-Aug-13 10:52 
I have a C++ application that has 3 functions. The first is the standard int main entry point function. The other function is a simple test function void Test(). And finally the 3rd is a analysis function that takes several parameters one of which is a std::vector. Both the main and Test function pass the same parameters to this analysis function. In theory these 2 functions should return identical results. However they don't. The main function is called from a command prompt and the other function is called from a python script. I have eliminated marshaling issues by not passing parameters to or from the Python environment. The Python environment simply calls the test function. However after placing print statements throughout the library I have seen that the results are completely different. Does anyone know of any memory model issues or threading issues that can occur between these 2 environments that might lead to something like this.

C++
//declarations
void Test();
void Do(std::vector<int> &x, int search);


int main(int argc, char* argv[]) //called from command line.
{
  std::vector<int> x; //some data here
  int search =8; //some param here
  Do(x,search);
}

void Test() //called from Python
{
  std::vector<int> x; //some data here
  int search =8; //some param here
  Do(x,search);
}

void Do(std::vector<int> &x, int search)
{
   //...Something here, possibly some vector juggling and new objects created as needed
}


I don't want to bother with the Python code here though it just calls the test function...it appears to run so, not sure what else it has to do other than wait for the C++ library to finish.
nothing

AnswerRe: I need some advice for a Python app calling a C++ library function. Pin
pasztorpisti23-Aug-13 11:20
pasztorpisti23-Aug-13 11:20 
GeneralRe: I need some advice for a Python app calling a C++ library function. Pin
icestatue26-Aug-13 7:12
icestatue26-Aug-13 7:12 
GeneralRe: I need some advice for a Python app calling a C++ library function. Pin
pasztorpisti26-Aug-13 7:18
pasztorpisti26-Aug-13 7:18 
Questionhelp help help Pin
Member 1022775823-Aug-13 3:23
Member 1022775823-Aug-13 3:23 
AnswerRe: help help help Pin
Richard MacCutchan23-Aug-13 4:27
mveRichard MacCutchan23-Aug-13 4:27 
AnswerRe: help help help Pin
Chris Losinger23-Aug-13 4:47
professionalChris Losinger23-Aug-13 4:47 
Questionchess Pin
Raymond505658422-Aug-13 13:17
Raymond505658422-Aug-13 13:17 
AnswerRe: chess Pin
bryce22-Aug-13 13:24
bryce22-Aug-13 13:24 
AnswerRe: chess Pin
ExcellentOrg22-Aug-13 21:24
ExcellentOrg22-Aug-13 21:24 
GeneralRe: chess Pin
David Crow24-Aug-13 4:38
David Crow24-Aug-13 4:38 
AnswerRe: chess Pin
Stefan_Lang22-Aug-13 21:28
Stefan_Lang22-Aug-13 21:28 
QuestionRe: chess Pin
CPallini22-Aug-13 22:14
mveCPallini22-Aug-13 22:14 
QuestionCListCtrl - selecting items inconsistent Pin
Vaclav_21-Aug-13 16:19
Vaclav_21-Aug-13 16:19 
AnswerRe: CListCtrl - selecting items inconsistent Pin
Richard MacCutchan21-Aug-13 21:20
mveRichard MacCutchan21-Aug-13 21:20 
GeneralRe: CListCtrl - selecting items inconsistent Pin
Vaclav_22-Aug-13 3:25
Vaclav_22-Aug-13 3:25 
GeneralRe: CListCtrl - selecting items inconsistent Pin
Richard MacCutchan22-Aug-13 4:36
mveRichard MacCutchan22-Aug-13 4:36 
GeneralRe: CListCtrl - selecting items inconsistent Pin
Vaclav_22-Aug-13 4:56
Vaclav_22-Aug-13 4:56 

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.