|
can any body help me out what is this error.or does we have to include any lib or header file to include.
|
|
|
|
|
It's contained in the Exchange Server 5.5 SDK samples. Microsoft no longer supports Exchnage 5.5 and this link[^] seems to be the only link that contains any useful Exchange 5.5 stuff - including the function you want. Look in the LibSamples/AddrLkup (think that's what it's called) directory - the function source code is in there.
BTW - if yu don't already have the Exchange 5.5 SDK, you're out of luck. That function requires that SDK and Microsoft have pulled it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi everyone
I have one question about the perfect way that can help me find what I need (functions,classes..or libraries) for example if I want to find all functions to run any program from my program,what is the point should I start my search from it?
could anyone help me and explain her/his way to find any function from a hundred functions exist in VC++.net development environment
|
|
|
|
|
On first reading this sounds like a bit of a daft question, but on thinking about it I can see what you mean. If you're not very familiar with .net and all it contains, then trying to work out which classes, methods or events are relevant to your problem can be quite difficult, and a lot of work.
Even those of us that do know it reasonably well (at least I think I do) can still sometimes get confused trying to find the best way to do things.
I don't know what other people do, but I generally start with Google, and use a search string that narrows down the results as much as possible. Be very specific, and think about what it is you're trying to achieve, what your problem is, then add extra search terms to look for specific information areas.
For example, someone was asking very recently about drag and drop in a ListView control, so I would search on Google using something like :-
"drag and drop" .net C++ ListView
which gives a lot of very good results.
Or, for the question below, on detecting screen resolution changes, I used :-
.net c++ windows detect screen "resolution change"
The Code Project articles are also a very good source of information, and using the advanced search mode there can also narrow down the results to the language or platform you're interested in. And there are a few other forums which have good articles and knowledge bases.
Finally, make sure you have Intellisense turned on, and have a browse through it - you can learn a lot about what a particular control, type, object etc. can do just by looking at its properties, events and methods.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Hi!
I need to detect screen resolution change cause i am working in a toolbar that docks in the borders of the screen.
Thanks
|
|
|
|
|
Easy peasy.
Handle the WM_DISPLAYCHANGE message.
Nnnnext!
|
|
|
|
|
Thats what I get for answering a post before my first morning cup of coffee. I didnt even realize that was what he was asking.
Best Wishes,
-David Delaune
|
|
|
|
|
If you us the GetSystemMetrics Function[^]
int x = GetSystemMetrics(SM_CXSCREEN);
int y = GetSystemMetrics(SM_CYSCREEN);
On a multi-monitor system you can use SM_CXVIRTUALSCREEN and SM_CYVIRTUALSCREEN.
You could also use the GetDeviceCaps Function[^]
int x = GetDeviceCaps(hDC, HORZRES);
int y = GetDeviceCaps(hDC, VERTRES);
Best Wishes,
-David Delaune
|
|
|
|
|
There's a system event which should be what you're looking for documented here.[^]
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Hello all,
I am currently trying to do a project where I convert AVI files into MP4 and I was planning on using directshow to do this. Does anyone know where I might be able to find a filter which does the job for me. I would prefer this to be open source and free if possible.
If no one knows where I can get such a filter could anyone suggest somewhere I might find some info about performing the transform as I am struggling to find anything of use at the moment.
Thanks for the help.
|
|
|
|
|
FFMPEG[^] is a free open source project that supports almost all heard of formats.
But I think you cannot compile it with Visual Studio. But you could use its binary.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hello Guys
I have got an array of chars for example: char[0] = 'C'
char[1] = '\0'
char[2] = '+'
char[3] = '+'
Now i ve got a problem how to put this chars in BSTR,
so that i can have a BSTR with embedded NULL cahr?
Or how can i create a BSTR with embedded NULL char in the middle?
Any ideas?
|
|
|
|
|
|
BSTR is finished with a NULL char although it has a fixed length.With an embeded NULL char may cause program-exception.But if you insist to do that,check these code:
{
BSTR bstrTest = SysAllocString(L"C+++");
BYTE *pByte;
pByte = *(BYTE **)(&bstrTest);
*(pByte+2) = 0x00;
//bstrTest is your BSTR {0x43,0x00,0x2B,0x2B}
//print the fixed length
printf("the length is %i\n", SysStringLen(bstrTest));
//print the raw BSTR data
printf("the 1st unicode raw data is %x %x\n", (BYTE)(*pByte++), (BYTE)(*pByte));
pByte++;
printf("the 2nd unicode raw data is %x %x\n", (BYTE)(*pByte++), (BYTE)(*pByte));
pByte++;
printf("the 3rd unicode raw data is %x %x\n", (BYTE)(*pByte++), (BYTE)(*pByte));
pByte++;
printf("the 4th unicode raw data is %x %x\n", (BYTE)(*pByte++), (BYTE)(*pByte));
pByte++;
printf("the end raw data is %x %x\n", (BYTE)(*pByte++), (BYTE)(*pByte));
}
|
|
|
|
|
Hello,
I wrote an mfc application using vc 2008.When UI tried to test my application on other computers I am getting "Application is not confiured properly" message although I copied required dlls.Tested systems are Windows Xp and Vista.My own system is Windows Xp and I have vc 2008 installed.Running properly. What is missing on the test systems? .net 3.5? or latest service packs.
|
|
|
|
|
|
Thanks David,
I copied dlls manually.I recently download redist package. I see that package does some additional configurations on the system(not just a dll coppy ).I hope It is going to solve my problem.Thanks for your prompt answer
Best wishes
BilgeKaan
|
|
|
|
|
Bilge Kaan wrote: I see that package does some additional configurations on the system(not just a dll coppy ).
Yeah, its the latest Microsoft answer to one of the oldest known shared object problems aptly named DLL Hell[^] the configuration stuff your seeing is called Side-by-side Assemblies[^]
Best Wishes,
-David Delaune
|
|
|
|
|
hi. i have downloaded the complete zip file of CSmtp_v1_5 and i use Dev C++ 4.9.9.2 to compile the main file of this zip file. when i compile there is a message like this
[Linker error] undefined reference to `CSmtp::CSmtp()'
[Linker error] undefined reference to `CSmtp::SetSMTPServer(char const*, unsigned short)'
[Linker error] undefined reference to `CSmtp::AddRecipient(char const*, char const*)'
i am unable to compile this main.cpp file due tolinker error.please help me. how can i compile that main.cpp file?
ravi joshi
|
|
|
|
|
You need to tell the linker where to find the library built for CSmtp. Simple as.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I am using CImg library, i can upload a single image at a time. But i need to upload a sample of images.
Plzz help me in loading multiple images using the same library..
|
|
|
|
|
upload to where?
Uploading sounds more like a problem with a website?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Upload means load a image in the progg...actually i am doing project on face recognition. For this i need to load multiple images on progg. using the CImg libray..plzz reply??
|
|
|
|
|
shyampasari wrote: Upload means load a image in the progg
Well, in that case, use multiple CImg instances...using code from the tutorial[^], you could use this to load two images, a.jpg and b.jpg:
CImg<unsigned char> image("a.jpg");
CImg<unsigned char> image("b.jpg");
Note that to load JPG files into CImg, you need to link against <a href="http://www.imagemagick.org/script/index.php">ImageMagick</a>[<a href="http://www.imagemagick.org/script/index.php" target="_blank" title="New Window">^</a>].
<div class="ForumSig">Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p</div>
|
|
|
|
|
I have to load multiple images like from 10-20, also the no. of images is not known it varies with problem, so i thought use for loop
convert integer to char using sprintf then concatenate it with the format like---.jpg, .bmp etc
char fmt[]=".jpg"
for(int i=1;i<=15;i++)
{
sprintf(str,"%d",i);
str=strcat(str,fmt);
CImg<double> image("C:/Users/Shree Hari/Desktop/trial/str");
CImgDisplay main_display(image,"Image",0);
}
now that str will vary from
1.jpg
2.jpg
3.jpg
and so on and my database is also like as above mentioned
but it is not reading str!!!!
Plzz help me in this
|
|
|
|