|
SetFileAttributes[^]?
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Holy cow, I didn't know you still hung around here, Martin
Regards,
Nish
|
|
|
|
|
Hi Nish,
Good to see you! I have been here a few times to look somethings up, but I haven't programmed in win32 for a few years. I've mostly been doing UNIX programming the last couple of years. I hope you are doing really well, Nish, you have a great attitude and are extremely talented.
Sincerely,
Martin.
|
|
|
|
|
I got a project made to address Microsoft CryptoAPI but can't compile it. Seems, it can't recognize any declaration in wincrypt.h (I've verified that the wincrypt.h and Crypt32 library is in the right place).
I'll try to find on the code project, that suggest to define this:
#define _WIN32_WINNT 0x0400
or this:
#define _WIN32_WINNT 0x0500
#define _CRYPT32_
but neither is working
Google search said that we might have to install newer platform SDK. Does anyone has a clue of using it ? If it's really because of SDK, where to get it (I never used SDK before) ?
|
|
|
|
|
Not sure about the problem with the Crypto API not compiling, what errors are you getting back from the compiler?
You can download[^] the lastest Platform SDK straight from the MSDN site, just hope you're not on dialup as it's just under 400mb's
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Here are a parts my error (the first line, I'm using something from wincrypt - see at the end):
:\test crypto\certmanager\certificate manager v3.2.2\lcertcontext.h(24) : error C2146: syntax error : missing ';' before identifier 'CreateCardList'
d:\test crypto\certmanager\certificate manager v3.2.2\lcertcontext.h(24) : error C2501: 'PCCERT_CONTEXT' : missing storage-class or type specifiers
d:\test crypto\certmanager\certificate manager v3.2.2\lcertcontext.h(24) : error C2061: syntax error : identifier 'HCRYPTPROV'
I've tried to find in MSDN.com, but can't find it. Could you please give me more clue about how to find it (link, keywords, or whatever) ? I don't mind about the size
And here is a part of my code, including my define:
#define _WIN32_WINNT 0x0400
#include <stdio.h>
#include <windows.h>
#include <wincrypt.h>
#include "Resource.h"
#define MY_ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)
class lCertContext
{
public:
BOOL FillListCtrl(CListCtrl *List,int *ListIndex);
PCCERT_CONTEXT CreateCardList(HCRYPTPROV hCSPCard,DWORD dwFlag, LPTSTR szCSPname);
}
|
|
|
|
|
The missing 3 includes from my previous reply are (because of 'tag' like) - in the order:
stdio.h, windows.h, wincrypt.h
|
|
|
|
|
Weird, just tried building it from here and it works fine. Just check your defines are being made before you link to the include files, ie...
#define WINVER 0x0400
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <wincrypt.h>
Looking at the wincrypt header if dont use them anyways though.
You can download the Platform SDK from here[^], theres a section at the bottom that says 'Files in this download', just select the exe for your processor type, probobly x86.
Once you've downloaded the SDK (check you download all the samples as well as they can be quite helpful at times) try building one of the WinCrypt samples and see if that works.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
The link you provided doesn't support VC++ 6 (seems Ms never care that millions people are still using the old good VS6). But anyway, I got it from a friend (after asking to many people ... and it's compiling perfectly. Thanks for your help anyway.
|
|
|
|
|
Where did you put those defines?
Regards,
Nish
|
|
|
|
|
Hello ,
How can I get Message from other windows than my application ?
For example how can get in my application the Minimize/Maximize Window Message when I click on Min/Max of an Explorer Window,
wihtout using the Hook ?
Christian
|
|
|
|
|
desir wrote: wihtout using the Hook ?
You have to install a hook. Messages are always sent to their target windows (or threads). Imagine the havoc it'd cause, if every message was broadcasted to every window out there.
Regards,
Nish
|
|
|
|
|
Hello everyone,
I have written a configuration wizard in c++ (mfc) that works great on windows xp. I would like to use this application on a windows xp embedded system.
How would I go about creating the executable with no dependencies that will run on an xp embedded system? It is my first time working on an embedded application, so any help would be appreciated.
I have tried google, but I haven't had any luck finding a good tutorial.
Thanks in advanced.
-----------------
Genaro
|
|
|
|
|
|
I think I might have stated my problem incorrectly. The problem is not the dependencies, the problem is that I want to be able to run the wizard on a windows xp embedded system, but it won't work if I just try to run the same executable that works in windows xp.
Are there settings that have to be changed in VS 2003 to make the exe work in xp embedded?
Thanks for the help,
-----------------
Genaro
|
|
|
|
|
ah, yeah, you mean if you compile for a target, and execute on another plateform ?
in fact you have to cross compile, but i'm not sure this can only be made with a project settings change...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
I ran into this article a little while ago, which I think explains how to do it. However, I can't get to the project->properties->common properties->general from my c++ project.
Well, I also have visual studio 6.0, which I believe runs against the 1.0 framework. So if I can make my code work in VS 6.0, then wouldn't this allow me to run the application on xp embedded without further modifications/settting changes?
Thanks
-----------------
Genaro
|
|
|
|
|
How can I make an Accessor that takes fields come from many table. for Instance I have this SQL code select name,study from agent,diploma where agent.matric = diploma.matric. I need to access the name and study field at one time .
How can I do this Accessor ?
I learn my self
|
|
|
|
|
To answer that question, more information about your target environment would be useful.
Generally, look into .NET (System.Data), DAO, ODBC, ADO ... and everything else that somehow relates to database-access.
All solutions I am aware of will cache the result of a SELECT-operation, so that you can access these fields at any time.
That is all I can say without further details.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Dear Sir,
I am using SQLSERVER 2000 database and i work with Visual c++ 6.0.
This subject is very important for me to understand.
|
|
|
|
|
how do i count the number of messages present in the message queue? is there anyway?
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
I don't know of any way to obtain such a number. Why do you need it? Given the hundreds of messages that are flying around at any given time, I'd guess the number would be accurate for only a few milliseconds.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Why do you need it?
Just to know about it.
DavidCrow wrote: I'd guess the number would be accurate for only a few milliseconds
yea i guessed the same, but i thought there's be a "snapshot" type to get the number of messages in the queue at a given point of time.
anyway..thanks david.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
As far as I know, there's no way to know that. Perhaps, if you wrote a kernel mode driver, and it could directly access some internal data structure that stores messages, it may be able to get a count that'd be valid for a few milliseconds, if at all.
Regards,
Nish
|
|
|
|
|
got it! in short ,its impossible for me for the moment. need to learn a lot
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|