|
You can try computing HD5 hash of 4-5 files in the CD and also store their path. Then everytime a CD is inserted you check if files you checked last time are present on CD and if their MD5 hases are identical. You may also compute a single unique number by combining file names and file data information. So that comparison is easy.
-Saurabh
|
|
|
|
|
Sample code would be great, thanks very much.
|
|
|
|
|
You don't do anything special.
You expose method with parameters like you would for any ActiveX COM interface.
The user will usually have a script section in the html that instantiates your control, calls the methods, and passes in whatever parameters needed.
Now there is the issue of whether your ActiveX control is "safe for scripting" since you are subject to browser security etc...
|
|
|
|
|
hi
is it possible to compile c code to Visual C++.Net dll ?
and how can we do it in case it is possible !
Thanks
|
|
|
|
|
Its actually very simple, you just use the /clr compiler switch, and the NET Framework compiler will compile the application as managed code.
This probably isn't a good idea, though, for various reasons.
Read this over at MSDN: /clr Restrictions[^]
You should probably start here: How To Migrate to /clr[^]
And, Native and .NET Interoperability[^] provides an overview of the subject
|
|
|
|
|
I don't think you can compile C code using the /clr
compiler option.
You can create a C++/CLI project and include C files in it,
but only C++ code will be compilable managed (the C++ code can
call C code).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Interesting link - I wish I would have read that 6 years ago
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
If you try to compile c code for make a c++.net dll you will be get some errors I think you need to change some things on your code.
|
|
|
|
|
Using Visual C++ 6.0 MFC in SDI application
When my window gets redrawn, I want to display a message using
pDC->TextOut(...)
but I want a different message (of different length) displayed depending on the circumstances when the window gets redrawn. I do not understand how to erase the old message unless I keep a copy of the old text and rewrite it with the background color. If I just try to write a long text string with all blanks such as tstr = " " to erase the old message before I display the new message I have to make the text string extremely long as the character size for a space seems to be different then the character size for letters. Should I just display a rectangle of an appropriate size in the background color to erase my old text, or is there a better method of erasing this old text each time the window gets redrawn?
Thanks
|
|
|
|
|
Have you tried Invalidate () ???
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Using Visual C++ 6.0 MFC in SDI application
I would like to put the & symbol in a dialog window to save some space instead of using the word "and", but the compiler recognizes the & symbol as a special character to associate the next letter as a command key. How do I just get the symbol with no special operation associated with it into the dialog window?
Thanks
|
|
|
|
|
Instead of single & , put && . For Instance for getting string like this - "B&utton" put "B&&utton" as caption.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
|
|
Please read the other answers given to the OP before adding yours.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hello!
I have created a custom edit control that uses COleDropTarget to accept/insert text drops. This works very fine.
However, when putting the edit control into a group control in the resource editor of Visual C++, the group control prevents the edit control from getting drag&drop notifications.
Is there any way to make the group control "forward" the drag&drop notifications? Or any other way such that the edit control sees the drop?
Best regards
Dominik
|
|
|
|
|
Hello....
As per my knowledge there will be some drop target ambiguity arises while u drops text on group. Check your code well for this ambiguity...!
Good Luck...
Jagdish Bhimbha
S/W Developer
|
|
|
|
|
????????!!!!!!
|
|
|
|
|
It was a test or a reply(question)?
|
|
|
|
|
I don't know how to do this properly but does this[^] workaround helps?
-Saurabh
|
|
|
|
|
Yes, thanks a lot!
I've changed the tab order such that the group control comes after the edit control, and now it works perfectly.
|
|
|
|
|
Great! You are welcome.
-Saurabh
|
|
|
|
|
Hi,
Can somebody please point out why I'm getting a heap corruption error for the below code? I'm free all of the resources I've allocated with malloc.
Thanks
void TestMultiDim()
{
char** mArray;
int rows = 50;
char* p;
char* q;
int i;
char* data = "John Doe";
size_t len;
len = rows * sizeof(char*);
mArray = (char **)malloc(len);
if(mArray == NULL)
{
exit(EXIT_FAILURE);
}
for(i = 0; i < rows; i++)
{
mArray[i] = (char*)malloc(len);
if(mArray[i] == NULL)
{
exit(EXIT_FAILURE);
}
}
for(i = 0; i < rows; i++)
{
mArray[i] = data;
}
for(i = 0; i < rows; i++)
{
printf("%s\n", mArray[i]);
}
for(i = 0; i < rows; i++)
{
free(mArray[i]);
mArray[i] = NULL;
}
free(mArray);
}
|
|
|
|
|
Due to this line :
gp343 wrote: mArray[i] = data;
The reason is that you are changing the pointer at mArray[i] to that of data. Now data was noy dynamically allocated and moreover all mArray[i] points to same data. So free will fail. For copying string you should use.
strcpy(mArray[i], data);
-Saurabh
|
|
|
|