|
Hi all
I'm looking forward to purchase ExeCryptor (www.strongbit.com) to protect my shareware written in C++. But before I'd like to know independent opinions/experience if any.
My question is: Anybody uses execryptor? Can you tell me smth about? Are there some problems? Is it cost-effective?
Thank you in advance for any reply
Jean
|
|
|
|
|
hello everybody .. i think that it's a stupid question but i need answer thanks my problem is as defined :
//this is my constructor ... in a class
<bold>
varstr= new char[0];
but when i do :
<bold>
cout <<strlen(varstr);< bold=""> it returns : 4
so i need that it returns 0 !!
thank you again
A C++ illetrate
|
|
|
|
|
try this: cout <<strlen(*varstr); - it might work just fine for you. Good luck!
P.S. strlen(varstr); it will always return 4 bytes since it's an ADDRESS 
|
|
|
|
|
sorry but definition is a char*.
this is what i have in the header file:
private:<br />
char* definition;<br />
public:<br />
CStrg();<br />
and in the cpp file i have this
CStrg::CStrg()<br />
{<br />
definition = new char[0];<br />
cout<<strlen(definition)<<endl;<br />
}
when i put :
cout<<strlen(*definition)<<endl;
i have this error:
...CStrg.cpp(10) : error C2664: 'strlen' : cannot convert parameter 1 from 'char' to 'const char *'
|
|
|
|
|
don't confuse strlen() and sizeof
|
|
|
|
|
You've allocated memory for your string but you haven't put anything inside it. It's just coincidence that your cout is printing 4.
You also need to do this:
varstr[0] = '\0' ;
BTW, you've only allocated enough space for 1 character and given that strings always need at least one character for the terminating '\0', your string is always going to be empty
0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.
Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
thank you Taka Muraoka it's works fine
thank you everybody 
|
|
|
|
|
Hi All,
I have a non mfc dll(does not contain the CWinApp) which needs to talk to 2nd dll which uses mfc as a shared dll.I want to make a call to the 2nd dll from the 1st one inorder to display a dialog box. I'm using LoadLibrary to load the 2nd dll from the 1st one and using GetProcAddress to get the address of the function which creates an object of dialog box and calls DoModal on it.But when I make a call in this manner, the code is crashing at ASSERT((p = pMap->LookupPermanent(m_hWnd)) != NULL ||
(p = pMap->LookupTemporary(m_hWnd)) != NULL); in Wincore.cpp
Can anyone please tell me what the problem is.
Thanks in advance
Raghu
|
|
|
|
|
have u called
AFX_MANAGE_STATE(AfxGetStaticModuleState());
in the first line of the function which creates the dialog?
nave
|
|
|
|
|
|
Ensure u have called
AfxEnableControlContainer();
Enable3dControls();
nave
|
|
|
|
|
from where should these functions be called
|
|
|
|
|
i think u can do it from dll attach of the extension dll
nave
|
|
|
|
|
I have in my project a CHyperlinkStatic class and I don't known who wrote it. Did anybody known something about?
|
|
|
|
|
|
Given that it has Static in its name, I bet whoever wrote it does not have a correct understanding of how GUI controls work on Windows...! :P
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Why do you say that?
Steve
|
|
|
|
|
Stephen Hewitt wrote: Why do you say that?
Experience.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
|
Hi All
I want to implement wildcard characters in comboBoxs where the columns of databases is listed like EmpI* (which may be EmpID or anything after EmpI).
how will I able to accept * with column name and how will I search or sort according to given option like EmpI*.
Please give the proper steps to do this or the test application code.
Love
Mausam
mausam
|
|
|
|
|
If you want to query a MySQL database using wildchars have a look on LIKE operator: String Comparison Functions[^] It might go for other databases. Good luck!
|
|
|
|
|
Hi all,
How can my application or process know that the user is going to End Process ( or End Process Tree ) it, with task manager?
I am using Windows XP.
Thank you.
- NS -
|
|
|
|
|
Put simply, you cant... Task Manager calls TerminateProcess[^] which stops the process dead and doesn't allow it execute anymore code.
End Process is designed to be a last resort for processes which have stopped responsing.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Yes, I understood...
Thank you...
- NS -
|
|
|
|
|
Almost but not quite true. If you select the "End Task" button from the "Applications" tab then task manager attempts to close the application gracefully by sending the window a WM_CLOSE message and only resorts to terminating it if it doesn't die within a timeout. If the "End Process" button is selected from the "Process" tab the process is terminated on the spot (as you describe). Actually things are actually slightly more complicated then described above but this gives the general idea.
Steve
|
|
|
|