![]() |
|
#1
|
|||
|
|||
Need help coverting char* to charHello I am writing a plugin for AutoIt(autoitscript.com). The problem is that the function used in the AutoIt plugin sdk to get a parameter from the function call in AutoIt returns a char*, whats wrong with that is that the function I wish to use it in will not accept a char*, It will only accept a char. Here is my code.
CPP / C++ / C Code:
CPP / C++ / C Code:
|
|||
|
#2
|
|||
|
|||
Re: Need help coverting char* to charQuote:
That would tend to make more sense for the initial word of an encryption function to use chars. You need each IV[] to contain a character and declare char IV[4]; You could then stuff it with whatever 8 bit values you want. I don't really see why you decide to stuff it with addresses, and the latter are not 8 bit long either. 2: I see one problem with your code: Here, this pointer is uninitialized CPP / C++ / C Code:
CPP / C++ / C Code:
3: Over here at: CPP / C++ / C Code:
4:Try to use malloc to allocate chunks of memory, with free to release the chuncks. You have a ton of space there and you could put a different size each time you run them. |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pointer initialization causing program abend? | emanresu | C Programming Language | 0 | 12-Dec-2006 11:36 |
| lvalue compile error | emanresu | C Programming Language | 7 | 16-Nov-2006 11:22 |
| getting an error while compiling and running using different IDE. | jaro | C Programming Language | 0 | 25-Aug-2006 10:14 |
| Memory cannot be read? | dlare9 | C Programming Language | 3 | 16-Nov-2005 08:03 |
| Debug Assertion Failed! | dlare9 | C Programming Language | 3 | 14-Nov-2005 00:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The