#14255 - DiscoStew - Sat Jan 03, 2004 6:55 am
I've been using VB for making programs that help speed up progress in my GBA programming, but now I'm trying to use C DLLs so that all the major processing portions can all be done faster. Although I have succeeded in doing this, I have run into a few problems that I'd like to have figured out.
1)
When my VB program enters my C DLL, VB is unable to do anything until the function call is completed. I'd like to be able to use a VB Timer so that I can access a counter I made in the C DLL for use with a VB Progress Bar, but my attempts have all failed. Sleep() does not allow for outside events to be executed, and my knowledge of Windows API is extreeeeeeemly low, so I don't know what to do. My C DLL only contains two functions, the main processing portion I converted from my original VB code (so it would execute faster), and a function that would return the global counter I mentioned earlier. The VB Timer was supposed to access this function, but it doesn't.
2)
Is there any way to be able to debug a C DLL? I spent about an hour looking through my C code trying to figure out why one of my functions wasn't working, only to find out it was a simple mistake on my part. I know in MS Visual C++ under the Build tab, I can use Start Debug/Go, and specify a program that could use my DLL, but actual debugging is another story.
These problems are not really a priority on my list at the moment, but getting them out of the way would help nonetheless. If anyone knows what to do, please help. thx
_________________
DS - It's all about DiscoStew
1)
When my VB program enters my C DLL, VB is unable to do anything until the function call is completed. I'd like to be able to use a VB Timer so that I can access a counter I made in the C DLL for use with a VB Progress Bar, but my attempts have all failed. Sleep() does not allow for outside events to be executed, and my knowledge of Windows API is extreeeeeeemly low, so I don't know what to do. My C DLL only contains two functions, the main processing portion I converted from my original VB code (so it would execute faster), and a function that would return the global counter I mentioned earlier. The VB Timer was supposed to access this function, but it doesn't.
2)
Is there any way to be able to debug a C DLL? I spent about an hour looking through my C code trying to figure out why one of my functions wasn't working, only to find out it was a simple mistake on my part. I know in MS Visual C++ under the Build tab, I can use Start Debug/Go, and specify a program that could use my DLL, but actual debugging is another story.
These problems are not really a priority on my list at the moment, but getting them out of the way would help nonetheless. If anyone knows what to do, please help. thx
_________________
DS - It's all about DiscoStew