Search:

Type: Posts; User: Brownie

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    6,106

    Hey stumon, Thanks for replying. The errors I...

    Hey stumon,

    Thanks for replying. The errors I am getting are all like the following:



    I don't know why it is using System.Data when they all should be MySql.Data. I do have a reference...
  2. Replies
    5
    Views
    6,106

    Also trying to connection to a local mssql...

    Also trying to connection to a local mssql server, but not having any luck with that. Just if anyone is wondering why this



    is commented out.

    The end result of the code will be deployed on...
  3. Replies
    5
    Views
    6,106

    Connecting to MySQl database

    Hi,

    Trying to use c# to connect to a mysql database that I have set up on a server somewhere, but I am currently getting the following error:



    The code I am using is the following:

    ...
  4. Replies
    6
    Views
    4,054

    Hi Mats, The program runs ok, no errors...

    Hi Mats,

    The program runs ok, no errors generated by the compiler. It seems to just fail in opening the connection to the port located at /dev/ttyUSB1. It skips straight to the else and prints...
  5. Replies
    6
    Views
    4,054

    Send strings to port in Linux

    Hi,

    I want to pass strings to the following port (/dev/ttyUSB1) using Linux, but I can't get a succesful connection. The code I am using is the following:




    #include <stdio.h>
    #include...
  6. Replies
    8
    Views
    10,716

    I am entering stuff into the string. It's nothing...

    I am entering stuff into the string. It's nothing big, so the 9 characters will handle it.

    Previously I was relying on the fact that what was being overwritten was not harming the computer.
  7. Replies
    8
    Views
    10,716

    Hi mats, So you are suggesting something like...

    Hi mats,

    So you are suggesting something like the following:


    starthour = new char[10];

    From the small tests I have been doing on the code, the one char seems to be sufficient, but thanks...
  8. Replies
    8
    Views
    10,716

    Hi, I needed to use char * for some of the...

    Hi,

    I needed to use char * for some of the other functions I was using. For instance strcat was giving out if it didn't have it.

    What you said Salem got me thinking and adding in the following...
  9. Replies
    8
    Views
    10,716

    uninitialized local variable 'XXXXXX' used

    Hi Guys,

    This is proabably some stupid error on my part, but I can't seem to see why the following piece of code isn't working:


    char *starthour, *startmin;

    ifstream starttime;...
  10. Replies
    2
    Views
    1,294

    Sorry, forgot to mention. I do have windows.h...

    Sorry,

    forgot to mention. I do have windows.h included, so the system command is working ok. The problem is just with changing directory:



    that line of code
  11. Replies
    2
    Views
    1,294

    Go to another directory and display file

    Hi,

    I would like my program to go to another directory and open a text file with notepad. Currently I am trying to do it with the following code, with no success.


    system("c:");
    system("cd...
  12. Replies
    4
    Views
    2,465

    Thanks.... Pointers have always confused me. ...

    Thanks.... Pointers have always confused me.

    Brownie
  13. Replies
    4
    Views
    2,465

    error C2440: 'type cast' HELP!!

    Hi All,

    I am having problems with the following bit of code.


    void setTxParams(int h, int s, int p)
    {
    ETHTransmit Tx;
    //Transmit Parameters
    Tx.ucTransmitMode = SINGLE_BURST_MODE;
  14. Replies
    3
    Views
    1,437

    Help with a Struct problem

    Hi,

    Just need a bit of advice on some C++ related issues. I have the following:


    #include <cstdlib>
    #include <iostream>
    #include <stdio.h>
    #include <memory.h>
    #include <windows.h>
  15. Getting Access Violation (Segmentation Fault)

    Hi,

    I have written a program using Dev C++. The program needs to call on functions from a .dll to run, so I have loaded the corresponding .lib into the project and all of the headers and the .dll...
  16. Replies
    2
    Views
    2,740

    Sorry, Figured out how myself. For future...

    Sorry,

    Figured out how myself.

    For future reference, if anyone gets a similar problem, just do the following:

    Go to Project>>Project Options
    Click on the "Parameters" tab
    Click on "Add...
  17. Replies
    2
    Views
    2,740

    Linker Problem with Dev C++

    HI,

    I am trying to use Dev C++ to compile some sample code I got, which was written in C. With the code I have the necessary header files, .lib file and .dll files I need and they are all in the...
  18. Replies
    5
    Views
    947

    Thanks for the help Mats and Twomers. I'll try...

    Thanks for the help Mats and Twomers. I'll try that out later and see how it works
  19. Replies
    5
    Views
    947

    Ok so..... Found all that stuff. So what do I do...

    Ok so..... Found all that stuff. So what do I do with it? I'm guessing I include the headers as normal, but what about the .dll and the .lib

    Brownie

    [Windows XP & Visual C++ 2005 Express...
  20. Replies
    5
    Views
    947

    Access Functions in a Dll

    Hi,

    I am fairly clueless when it comes to C++, so I'd appreciate any help.

    So.... I have a dll for a machine. What exactly do I do with it? i.e. How do I include it into the code, access and...
  21. Replies
    6
    Views
    1,289

    i would like to open the site in the browser. a...

    i would like to open the site in the browser. a friend in college recommended to use shellexecute and so did a lecturer in programming. the system("run ...") did not work, for me anyway.
    thanks for...
  22. Replies
    6
    Views
    1,289

    Opening a website

    hey, i knda new to c programming so please don't be too harsh.
    anyway i would like to open a website using a c program. (eg. www.google.ie).
    does anyone know of a function that can do this?? would...
Results 1 to 22 of 24