dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: jkepler

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Replies
    1
    Views
    662

    C++ to VB translation

    Good afternoon,

    I'm having some troubles (in the results) to translate the following routine in C++ to VB. It's a routine which messes with complex numbers... So here it is (and how the call is...
  2. Replies
    0
    Views
    401

    WebBrowser Links - Events trap

    Hi,

    Does anyone has experience in retrieving links pressed events in the WebBrowser control for VB6?

    What I'm trying to do is this: after sending an html page - my own html code - to the...
  3. Problem running perl script from C program

    Hi,

    I'me trying to run a perl script (test.pl) from a C program in a Unix server, I get no error - but I also get no output... :(

    For simplicity, here's what I've done in C (the calling...
  4. Replies
    2
    Views
    974

    Re: Segmentation fault in C++ program

    Good evening Igor,

    I don't have gdb installed in the server...only strace. But I've managed through its information to solve the issue. Notice the file error:



    open("de431.eph", O_RDONLY) ...
  5. Replies
    2
    Views
    974

    Segmentation fault in C++ program

    Hi,

    I have a program in C/C++ that runs perfectly in my Windows 7, 32 bits.

    But when I compile it in Linux, I get - only for some files reading - the "segmentation fault" error.

    Below is the...
  6. Re: Little/Big Endian test code in machine and file

    Actually, I've heard about SQLite a long time ago. It's interesting that point.

    But I've got something else in mind.... :)

    Either way, I'll explore it.

    Cheers,

    JKepler
  7. Re: Little/Big Endian test code in machine and file

    Hi again,

    I totally agree with you both. Remaining with text data is safer. I'll implement my files in that way - at least is universal.

    The problem might be the size of the files (will a...
  8. Re: Little/Big Endian test code in machine and file

    Hi Reubens,

    Unfortunatly you're absolutely right. The test will give the result to my compilation - not the user platform specifications when it runs there.

    But I have a small question: if my...
  9. Re: Little/Big Endian test code in machine and file

    Hi,

    VC2010 installed. As expected, here's the first phase:



    By the way: msbuilder is there.
    I really was expecting this...

    JKepler
  10. Re: Little/Big Endian test code in machine and file

    Good morning all :)

    First of all, thank you very much for all the help - you guys are great :)

    2kaud... as usually, the **** short int are bugging me again!!! I was retrieving the x.ui value to...
  11. Re: Little/Big Endian test code in machine and file

    Hi again,

    I was able to run your sugestion, with some corrections:



    int IsEndian()
    {
    const unsigned int sui = sizeof(unsigned int);
    unsigned int s = 0;
  12. Replies
    9
    Views
    1,691

    Re: Problem with empty/null string/char...

    Thanks Paul :) I've realized that in the worst way.

    Kind regards,

    JKepler
  13. Re: Little/Big Endian test code in machine and file

    Hi 2kaud,

    I got (kind of) that solution between my calculations :)

    Here's what I've done - using what you gave me:


    int Endian()
    {
    union {
  14. Replies
    9
    Views
    1,691

    Re: Problem with empty/null string/char...

    Hi,

    0 - if it opens the file sucessfully (file exists and opens succefully)
    1 - if it fails (corrupted file or doesn't exist)

    if (file_name == NULL)
    {
    return 1;
    }
    if ((BUFFER =...
  15. Re: Little/Big Endian test code in machine and file

    Very good point @OReubens :)

    But first, @2kaud, I'm running Windows XP SP3 - Visual studio above 2010 isn't suported. And VS 2010...well, it just sucks (MSbuilder constant problems... )

    But,...
  16. Little/Big Endian test code in machine and file

    Good evening,

    I'm trying to make a simple test in visual C++ 6 - one which will not fail - to see if:

    1) The current machine is running in little or big endian format;

    2) If an inputed value...
  17. Replies
    9
    Views
    1,691

    Re: Problem with empty/null string/char...

    Good evening,

    Sorry for the late reply ahhodin.

    I've done as you told. Everything is running smoothly :)

    Meanwhile, I had a similar problem with a general routine for closing the same file....
  18. Replies
    9
    Views
    1,691

    Re: Problem with empty/null string/char...

    Hi,

    Thank you all for the help.
    I've found out the following: the function was defined by short int __stdcall

    I've looked at the results of the return, and they were weird. So I've changed it...
  19. Replies
    9
    Views
    1,691

    Problem with empty/null string/char...

    Good evening,

    I'm making a DLL in Visual C++ 6.
    And calling it from a VB6 program.

    The problem, is that one of the routines (in VC++ 6) is of the type:

    short int __stdcall file_open (char...
  20. Replies
    3
    Views
    727

    Re: Problem passing an array

    Hi,

    How should I solve the problem then? Pass the values one by one? What if the array has 200 elements?

    Kind regards,

    JKepler
  21. Re: Using putenv to place a double value in memory

    Hi,

    Thank you very much.

    Kind regards,

    JKepler
  22. Using putenv to place a double value in memory

    Hi,

    In another Thread , I was kindly given a way to put a string in the environment environment. Now, I'm trying to place a double. I've tryed the following code:



    void Setenv(double vx)
    {...
  23. Replies
    3
    Views
    727

    Problem passing an array

    Hi,

    I have the following problem: I have a routine in C/C++ (compiled in a DLL) in the form of:



    void function1(double rrd[],...){...}


    I want to pass an array from VB6 to that routine....
  24. Thread: Using putenv

    by jkepler
    Replies
    11
    Views
    2,720

    Re: Using putenv

    Thank you very much for your kindness and explanations. It works fine.

    Kind regards,

    jkepler
  25. Thread: Using putenv

    by jkepler
    Replies
    11
    Views
    2,720

    Re: Using putenv

    I apologise....but can you post the code?

    Kind regards,

    jkepler
Results 1 to 25 of 29
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)