|
Thank you. I will give a try. This one seems for image processing, I hope it will work for seismic waves.
|
|
|
|
|
I wish to get the project files and link and run it.
Please advise.
|
|
|
|
|
I guess I have a keen sense for the obvious but I would try the download link(s) on the page he linked to.
|
|
|
|
|
The download does not include a project file. So I still do not know how to compile those library files into a project.
I need to process seismic waves from geophysics survey.
Please help
Thanks
|
|
|
|
|
Hi folks,
I'm looking for non-template based library that provides common data structures (queue, vector, etc). The non-template part is crucial since I'm doing embedded system and I need the code to be portable to older EC++ compilers.
Ideas? Commercial or non-commercial suggestions accepted!
Thanks in advance!
|
|
|
|
|
A C generic container library is probably what you're looking for. This StackOverflow page[^] seems relevant?
Similarly, this page[^] describes generic containers in C.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi all,
i have a big annoying problem with visual studio 6:
in my projects when i go in debug mode i cannot see the value of some variables in watch window,
simply they appear uninitialized or empty, but i know they are initialized!
i.e. if i want to see the value inside variable Y i have to write the following code:
int x=Y;
only in this way i can see the x variable in watch window with its value...
i have formatted my PC but cannot solve yet this problem...
anybody knows this kind of problems?
i hope i've explained enough...
Thanks to all in advance...
|
|
|
|
|
Are you actually using the Debug configuration build? Because the symptoms you describe sound just like trying to debug a Release configuration build with optimisations turned on...
But then the compiler would optimise away the assignment of Y to x as ineffective. Hmmm.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
yes i'm in debug mode...
i just cannot find any mention of this kind of problem around the web...
i'm using an AMD Athlon 64 x2 4800+ with 2GB of RAM and Win XP SP3
|
|
|
|
|
You might like to try Windbg[^] for debugging, see if that gives better results?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I've also found VC6 terrible at watching global variables...
Also, deleting the ncb file helps a lot with almost everything!
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Verify whether you are watching "Auto", "Locals" or "this".
|
|
|
|
|
seems very strange, i've tryed on another PC the same code and i got same results...so is not my HW i suppose, but mine and other PC are
with dual core CPUs...i got a amd athlon X2 processor and other is intel core 2 duo....i will try on a single core machine...maybe visual c++ 6
got some troubles with today multicore cpus? if it's true what i can do?....
|
|
|
|
|
I use VC++ 6 on a Core 2 duo and don't have a problem. Wish I had a solution for you.
|
|
|
|
|
Hi,
I have a code that generates hash from data stream using following calls:
CryptAcquireContext(&hDummyProv, NULL, NULL, PROV_RSA_FULL, 0)
CryptCreateHash()
CryptHashData()
CryptGetHashParam()
CryptDestroyHash()
I am trying to use the hash blob to generate signed message using following calls:
CertEnumCertificatesInStore
CertGetCertificateContextProperty ()
CryptAcquireContext(
&hProv,
pProvInfoData->pwszContainerName,
pProvInfoData->pwszProvName,
PROV_RSA_FULL,
0)
CryptCreateHash() – get new hash handle this time from CSP
CryptSetHashParam() – update hash handle with message digest prepared earlier
CryptMsgOpenToEncode(
MY_ENCODING_TYPE,
CMSG_DETACHED_FLAG | CMSG_AUTHENTICATED_ATTRIBUTES_FLAG,
CMSG_SIGNED,
&SignedEncodedInfo,
0,
NULL)
Everything works fine until I retrieve the szOID_RSA_messageDigest property to compare with previously generated hash. I get a different value than I set.
Comment: I must use a call to CryptMsgOpenToEncode to generate encrypted message signed by A CSP.
What am I doing wrong?
Thanks for helping me,
Lilach
|
|
|
|
|
Hi Lilach,
Unfortunately you have not provided enough information to conclusively identify the cause of your problem. The only thing that comes to mind is that I dont see your mention of calling CryptMsgUpdate.
With the limited information provided the only thing I can think of is to point you towards an MSDN sample which closely matches your requirements:
Example C Program: Encoding an Enveloped, Signed Message[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Hi David,
I added a call to CryptMsgUpdate() as you suggested. The problem is that when I decode the resulted message, the content contains different message digest. In fact, I think it is the digest of an empty message.
Here is the message digest I got:
DA 39 A3 EE 5E 6B 4B 0D 32 55 BF EF 95 60 18 90 AF D8 07 09
Here is the relevant code:
CMSG_SIGNED_ENCODE_INFO signedEncodedInfo;
HCRYPTPROV hHash = NULL;
// ... here singedEncodedInfo is initiated
// create a hash object.
if (!CryptCreateHash(d_hCryptProv, CALG_SHA1, 0, 0, &hHash))
{
throw( GetLastError());
}
// set hash data to hash handle
// pHashBytes is a pointer to bytes array containing
// hashed data
if (!CryptSetHashParam(hHash, HP_HASHVAL, pHashBytes, 0))
{
throw(GetLastError());
}
// initiate encoded message
d_hMsg = CryptMsgOpenToEncode(MY_ENCODING_TYPE,
CMSG_DETACHED_FLAG | MSG_AUTHENTICATED_ATTRIBUTES_FLAG,
MSG_SIGNED,
&SignedEncodedInfo,
0,
NULL);
if (!CryptMsgUpdate( d_hMsg, NULL, 0, TRUE ))
{
throw(GetLastError());
}
Do you have an idea what is wrong?
Thanks,
Lilach
|
|
|
|
|
What do you mean when you say decode? Are you trying to decode a SHA1 hash back into the original message? SHA1 is a one way hash, it cannot be decoded back into the original message!
Best Wishes,
-David Delaune
|
|
|
|
|
I'm using CSSplitter class to split some controls in a dialog. CSSplitters take two * CWnd arguments for the up and down control window. (or left and right).
It's very easy to do that. But now, I'd like to add some controls in one pane, because only two controls are split for now. The goal is to make a bar with buttons between the controls that would move as the splitter is moved.
A picture would be more eloquent : http://img11.imageshack.us/img11/4145/sanstitre1fgg.jpg (http://img11.imageshack.us/img11/4145/sanstitre1fgg.jpg)
That's what i'd like to do in the best case. (Image from bearshare)
We can drag the splitter and the bar moves as the bottom list is resized.
Have you got any idea on how to do that ?
Any simple solutions ?
Or do you know some other splitter class than CSSplitter that would be able to do it in a dialog ?
I tried Zsplitter on this site, but it doesn't work with visual studio 2008... And is somewhat complex to install. (not to use)
I've been stuck for 2 days trying to solve that ridiculous but very annoying and frustrating problem. For hours I tried tutorials, different classes. But none worked well, because most classes are made for sdi/mdi, most don't allow more than one control per pane, can't be resized... (As my dialog is a CResizingDialog to resize controls automatically, sometimes it works, sometimes i get numerous errors...)
Thanks in advance,
One idea was to make a separate panel that includes controls and attach it when creating the splitter. But it doesn't work too, and i wouldn't be able to access objects any more.
modified on Wednesday, July 15, 2009 1:07 PM
|
|
|
|
|
Is it possible to mount a file (from C/C++) to a folder in Microsoft Windows? Like some virtual CD drive applications mount *.iso (and other formats) files to a virtual drive, but to folder instead of a drive.
If it is, please point me in the right direction (some article for example). I've spent countless hours google'ing for it but found nothing.
Thanks in advance.
|
|
|
|
|
What kind of file do you want to mount? It only makes sense if the file is a container of some sort that has a folder structure inside (ISO, ZIP).
|
|
|
|
|
Yes, I'm working on a project, a part of which is creation of a file format that contains just plain data of files, stored sequentaly, so that such file can be mounted as a directory. 'Container' in other words. ISO, ZIP etc are good examples.
|
|
|
|
|
Assuming you're using an NTFS filesystem, I think reparse points[^] sound like they could fit the bill?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Well, this looks like a solution, but a bit complicated (only for me? ) Anyway, many thanks for the reply.
|
|
|
|
|
gospel567 wrote: Well, this looks like a solution, but a bit complicated
Stuart gave you some excellent advice. Have a look at the Microsoft MSDN sample code:
Creating a Mounted Folder[^]
Hopefully viewing code samples will shed some light on this mysterious function and reduce the percieved complexity level.
Best Wishes,
-David Delaune
|
|
|
|