Message 1 of 10
VB'er making the leap!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
First off let me thank you a head of time, THANKS!
Okay as the header says I'm a VB programmer making the leap to C++/ARX programming. In other words NEWBIE.
Basically all I really want to do is create an ARX file that registers commands in AutoCAD that run VBA macros. I currently have a working version using acedCommand function.
I want to take the variable modulePath and get just the folder name that the ARX module is currently located in so that I can concatenate the folder path with the .DVB file. I've tried using #include, #include and any other variations without success, VC keeps stating that string is undefined.
I know that I could use a LISP file, but I am trying to package a program for distro. that can be added to registry and will work in all profiles...ARX!
Thanks Again for any info!
Okay as the header says I'm a VB programmer making the leap to C++/ARX programming. In other words NEWBIE.
Basically all I really want to do is create an ARX file that registers commands in AutoCAD that run VBA macros. I currently have a working version using acedCommand function.
//-----------------------------------------------------------------------------
// This is command 'CHECKDIMS, by [3/27/2003], ,
void AMSIMiscellaneousUtilitiesCheckDims()
{
#ifdef OARXWIZDEBUG
acutPrintf ("\nOARXWIZDEBUG - AMSIMiscellaneousUtilitiesCheckDims() called.");
#endif // OARXWIZDEBUG
// TODO: Implement the command
char modulePath[512];
char statement[] = "The full path of the executing program is: ";
::GetModuleFileName(_hdllInstance, modulePath, 512);
acutPrintf (strcat(statement,modulePath));
acedCommand (RTSTR, "_-vbarun", RTSTR, "D:\\AMS\\Development\\Clients\\PS&S\\Utilities\\AmsUtilities.dvb!Module1.CheckForOverRiddenDimensions", 0);
}
I want to take the variable modulePath and get just the folder name that the ARX module is currently located in so that I can concatenate the folder path with the .DVB file. I've tried using #include
I know that I could use a LISP file, but I am trying to package a program for distro. that can be added to registry and will work in all profiles...ARX!
Thanks Again for any info!
Ronnie Wilkins, Jr.