|
i think you can do it with "ipconfig" from DOS
|
|
|
|
|
I want to add my own tab group to the output window and redirect messages from the debug output window to it. The second part i know how to do but just cannot find any info on the first, does anyone know to do this and if its even possible?
I've looked through all the cool addin articles on here and using Nick Hoddap ShowInnards() found out its called COutputWindow, but that is as far as i can figure. He also mentions that they use their own custom tab window class so iterating the windows until i find doesn't seem like it will help as i have no idea of the interface to use when i get there.
Nothing in msdn or on microsoft mentions anything about it. VC.Net makes it a piece of cake but we're still gonna be using v6 for at least another year;(
Thanks for any help
Martin Slater
|
|
|
|
|
Correct::
ON_Point www;
const ON_3dPoint jjj = www.point;
Got ERROR:: error C2228: left of '.point' must have class/struct/union type
const ON_Point* actPoint;
const ON_3dPoint* kkk = actPoint.point;
What does the Error mean?
Thanks
|
|
|
|
|
const ON_Point* actPoint;
const ON_3dPoint* kkk = actPoint.point;
What are you doing?
actPoint is a pointer to nowhere.
If ON_Point::point is supposted to be a pointer to type ON_3dPoint the where was it allocated. If point is a pointer and was initialize/allocate in the constuctor for ON_Point (which I would find a questionable practice) then the solution is simple.
const ON_Point* actPoint = new ON_Point;
const ON_3dPoint* kkk = actPoint.point;
But I need to tell you this little code snippet scares me, I see nightmare in your future.
Trust in the code Luke. Yea right!
|
|
|
|
|
I create a simple CListBox from the resource designer and I set the horizontal scroll property but then I add some long strings in the control, all the text are truncated and the horizontal scroll bar is not displayed.... I can't figure out what the problem could be...
Any idea?
|
|
|
|
|
Sorry for the post... I found the solution, using the search function of the forum.
|
|
|
|
|
Hello All,
I need to be able to convert decimal numbers into fraction form.
I understand how to do this mathematically but I'm not sure how to put it into code.
Thanks for your help
Aaron :beer
|
|
|
|
|
I know how you feel. Before I took a programming class, I didn't have a clue how to translate a mathematical algorithm into code. Taking that C class in college really helped. Perhaps you should try that yourself.
If you have taken a class and/or read a few books, then you should at least attempt to convert your algorithm into code. Once you do, compile your code and see if it works. If you get stuck, come back here and show us your work so we can help you pinpoint the problem.
Good luck!
Regards,
Alvaro
That which does not kill me postpones the inevitable. -- despair.com
|
|
|
|
|
Hey Dude,
A quick 'n' dirty way of doing it would be to count the number of digits after the decimal point as your numerator and use this number of digits to calculate your denominator.
Ex: .3456 = 3456/10000
That'd give you a fraction at least.
If you want to reduce it, find numbers that divide both the numerator and denominator evenly. Use the modulus operator for this. A result of 0 indicates that the number is evenly divisible.
ex: 2%10=0, evenly divisible
3%10=1, not evenly divisible.
Of course for very long decimals you may want to adopt some fixed amount of places to round off to. You will lose some precision in the number however.
I'd put the whole operation in a function like:
void print_fraction(double decimal_value),
that prints a fraction for the decimal value you pass to it.
Hope this helps.
Josh Knox
|
|
|
|
|
Is there any control that implements the VSS dialogs or do I have to create them from scratch if I want to integrate VSS functionality in my project?
|
|
|
|
|
Your choice is automation vs SCC APIs. SCC APIs requires signing NDA with MS. Automation is just an automation (no dialogs).....
Why would you even want standard dialogs??? Point of integration is provide something better....
Brian
|
|
|
|
|
Hi All,
I am trying to create a DLL plugin for my favorite non MS IDE and I am getting an "LNK 2019 unresolved external symbol error" when ever it gets to a function call to another file that came with the IDE I am trying to modify. I have included the header file that has the external function declaration in it, in my .c file but it doesn't seem to be working as expected.
The code was written in C I am using VS.NET to compile it as C code. Any clues out there? This is my first attempt at writing a DLL.
Thanks for the help in advance.
Jeff Patterson
Programmers speak in Code.
http://www.anti-dmca.org[^]
|
|
|
|
|
Usually, you must link to the .lib file that goes with the .h file, unless all functions and methods are inline. Check the documentation.
|
|
|
|
|
Thanks for the response.
Unfortunately the documentation is virtually non existant. I have been trying to get this to work for the last three days.
There is only one .lib file and I am linking to that and two .h files in different default directories that I have to include.
I am kind of at a loss. I have spent most of today playing with the compile and link settings.
Jeff Patterson
Programmers speak in Code.
http://www.anti-dmca.org[^]
|
|
|
|
|
I am afraid Michel Prévost is right. You need the right .lib. But I have some questions you need to ask you self. (1) If you are writing add-in using C++ (you did not say), then are you are you making sure you are using C linkage (non-mangled names). Example: When using Visual C/C++ or Visual C++ you need to use
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
ether in the header file or surrounding the include C header file.
(2) Does the library you are attempting to use have the same name as the .dll, If not it is the wrong library and you have a major problem.
(3) If you do not have the right library is there any way that a library can be created from the existing .dll file?
Well I do not know for sure, but I may have seen an aticle on doing that on this site or some where else.
(4) If all else fails contact the company or developers of the IDE you wish to add-in to. On second thought may be you should have tryed this first.
Well I have no solution but I hope the above will give you some direction.
Trust in the code Luke. Yea right!
|
|
|
|
|
I created a DLL in VC++, but I get the following error message when I try to register it. What do I need to do ??
the DLL RegisterServer entry point was not found
|
|
|
|
|
Only COM servers (ActiveX DLLs) can be registered.
|
|
|
|
|
I'm creating a couple of debugging text files from a DLL and I need these to appear only in the same directory as the DLL. I have been using GetCurrentDirectory() to determine the path and appending the filenames to that. This works fine with my test application. However, with the release application (which I have no control over), the files are created on the desktop. Is this because the application is changing the current directory? Both the application and the DLL are in the same directory (usually: c:\program files\...)
So, is there a way to determine the full path to the DLL from within the DLL and not worry about the current directory?
Thanks
|
|
|
|
|
|
Try GetModuleFileName()
Art
|
|
|
|
|
I use the following..
_TCHAR drive[_MAX_DRIVE];
_TCHAR dir [_MAX_DIR];
_TCHAR fname[_MAX_FNAME];
_TCHAR ext [_MAX_EXT];
_TCHAR path [_MAX_PATH];
GetModuleFileName(NULL, path, _MAX_PATH);
_tsplitpath(path, drive, dir, fname, ext);
CString strCurrentDir = CString(drive) + dir;
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Thanks for all the help. I've got things working just fine now.
|
|
|
|
|
I would like to have a SOAP server that would require a client certificate to authenticate the client machines. On the client side, I use the CSecureEvtSyncSocket class. For those who know that class, there is a while loop in the clientHandshakeLoop method of that class.
Here is a part of that loop:
scRet = SEC_I_CONTINUE_NEEDED;
while(scRet == SEC_I_CONTINUE_NEEDED ||
scRet == SEC_E_INCOMPLETE_MESSAGE ||
scRet == SEC_I_INCOMPLETE_CREDENTIALS)
{
scRet = g_Sample_SecurityInit._SecurityFunc.InitializeSecurityContext(&m_hClientCreds,
&m_hContext,
NULL,
dwSSPIFlags,
0,
SECURITY_NATIVE_DREP,
&InBuffer,
0,
NULL,
&OutBuffer,
&dwSSPIOutFlags,
&tsExpiry);
if(scRet == SEC_I_INCOMPLETE_CREDENTIALS)
{
getNewClientCredentials();
fDoRead = FALSE;
scRet = SEC_I_CONTINUE_NEEDED;
continue;
}
}
I configured IIS on the SOAP server to require Client Certificates. I know this should because the application works if this is not set, and returns errors if it is set.
The first call to InitializeSecurityContext returns SEC_I_CONTINUE_NEEDED but the second pass returns 0 . What I don't understand, is why the call to InitializeSecurityContext never returns SEC_I_INCOMPLETE_CREDENTIALS which would indicate to the client that a client certificate is required.
Also, I would like to know if there is an article, preferably on CP , on how to manage client certificates, both on client and server, and how to access them programmatically.
Tx
|
|
|
|
|
1)Is it OK if I do nothing in the constructor – all initializations are done in the initialization list and the body of the Ctor is empty, i.e {}?
2)In one of the class methods I open, read and close a file. In another one I open, write and close an other file. Should I do something in the destructor? I have no class members for these streams so… In any case, Is it OK to leave a Dtor empty (actually not even declaring a Dtor) if there is no allocation on the heap throughout the class (no ‘new’)?
Thanks.
-----------------------
Go USA Go
|
|
|
|
|
1. yes
2. yes, you can leave the dtor empty. as long as your file objects are locals (and so,get cleaned up).
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|