Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by slapierre

  1. slapierre

    LIB file linking error

    what about the fist thing i tried...
  2. slapierre

    LIB file linking error

    Greetings, I'm trying to write a simple application that tests a CAN device, I have a .LIB file that contains the functions I need to "talk" with the hardware, but it won't link - .\Can841m.lib : fatal error LNK1136: invalid or corrupt file - the problem is that I can see the content - the...
  3. slapierre

    Unable to connect to a DB when the application is deployed

    Well... The ODBC connection can be established through the BDE since it's working fine on my computer. I found that I need to deploy the Borland Database Engine along with the application in order to access tables, now I need to find out how.
  4. slapierre

    Unable to connect to a DB when the application is deployed

    I'm using a TDataBase component to open SQL tables through an ODBC driver (MySQL ODBC 3.51 Driver), and a TTable component to add and update the records. The application is working fine on my computer so I deployed it with the following copiler options : . Linker -> Linking -> Use...
  5. slapierre

    _matherr doesn't catch the exception

    Bandit! I sent you bits of pieces of codes, you deserve an explanation: The 'j' increment isn't causing this problem, I only forgot to change it for an 'i', 'j' is used to decimate the array 'cause the PH3 buffer size is 1024, but I only take the even numbers (PH3 - polar form of the...
  6. slapierre

    _matherr doesn't catch the exception

    Hey Bandit! Your reply is quite interresting but it only catches divisions by zero, the problem is that a y = log10(x) call will return a domain error when x = 0 and a sign error when x is a negative number. The data (an array of 512 values) is acquired by microphones wired to a DSP (which...
  7. slapierre

    _matherr doesn't catch the exception

    Greetings, I need to handle the exceptions generated by a call of the y = log10(x) when x equates 0 or is a negative number, I then count them and display the number of errors after my linear to logarithmic conversion. I wrote the following piece of code and it worked in another application...
  8. slapierre

    dbExpress : unable to load libmysql.dll

    Greetings, I'm using BC++B6 Professional edition and I wan't to access a database developped in MySQL that is on our corporate intranet. I tried to connect to the DB using dbExpress's MYSQL driver set. When i try to switch the "Connected" proprety to "true" in the Object Inspector, the...
  9. slapierre

    working with LabView array format (array handle pointer)

    Greetings, I need to pass arrays to a LabView DLL that will (eventually) perform math routines on data. For now I want to understant the principle so I wrote a simple VI (result[i] = i + i). The memory allocation seems alright but it crashes when I call the function (Error #3, "memory.cpp"...
  10. slapierre

    OpenDialog : Get the adress (WORD *) of a file

    Supernat03: The WORD* Addr will contain the audio data stream buffer (wav file) start address, I used an OpenDialog to select which file to send, the OpenDialog->Filename returned an AnsiString, now I want to get the address of the selected file. I want to get the address of a file from its...
  11. slapierre

    OpenDialog : Get the adress (WORD *) of a file

    Greetings, I need to get the adress of a wave file, I used and OpenFile dialog to get the path, now I want to transform the AnsiString into an address (in other words, I want to change a path into an adress). Here's a piece of code that I wrote for an on-click event, I have no clue on how to...
  12. slapierre

    convert 4 bytes to IEEE-754 float

    thx a lot! it's working great, all i had to do is to invert my bytes(array[3] = b0 ... array[0] = b3) and the digits matched! Simon Lapierre slapierre@sonomax.com
  13. slapierre

    convert 4 bytes to IEEE-754 float

    Greeting's I need to convert 4 bytes in a float, I searched the forums but the answers were all about VB and I can't find an equivalent to the BitConverter method, here's a piece of code from a thread by theoxyde : byte[] input = new byte[4]; // 32-bit byte array // put your bytes into the...
  14. slapierre

    insert infos in a DLL

    thx! that's what I needed, I should have searched a little more before posting! Simon
  15. slapierre

    insert infos in a DLL

    Greetings, I wrote a driver and I want to insert basic informations in it so i can legally own the moral rights of my work, i used a DLL analysis application to spy on other drivers and it returned these filled fields: File Name, Internal Name, Product Name, Company, File type, File OS...

Part and Inventory Search

Back
Top