|
|
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
|
|
|
|
|
Hello,
I've been trying to solve that problem for some time now and I'll be very grateful to anyone who can suggest a solution. The problem is a little tricky but I hope I'll be able to explain it clearly.
I have an application which might need to notify the user of an event even if it's not focused at the moment or is minimized. Think of something along the lines of an app that copies files for 5-6 minutes and needs to say 'Your files were copied' at the end, but the user has switched to writing emails in the meantime. I don't want to grab the keyboard focus because he might be doing something like writing in notepad in which case he'll be randomly pressing hotkeys on my dialog instead of writing to notepad. But I can't figure out how to do this properly.
Right now I use this code (from my main dialog class):
SetForegroundWindow();
By calling SetForegroundWindow() my dialog comes to the foreground (or flashes - but I don't know how Windows decides which of the two) and sometimes will steal focus which I don't want, but there are many problems if my dialog is also minimized. In this case the taskbar icon of my dialog will seem to become active on the taskbar, but my dialog won't show itself (it'll remain minimized but receive keyboard focus it seems). If I uncomment the other two lines, then it solves all problems with minimizing as it first unminimizes the dialog, but it _always_ steals focus which I don't want.
My second problem with the main dialog being minimized is I also create a dialog containing some information about the event and I display it with DoModal, and if I call DoModal while the main window was minimized, when the user switches to my program the new dialog created with DoModal is shown but the main dialog is not. Any way to fix that?
So it's all very complicated and I'm not sure how it's supposed to be implemented. Again, all I want is to notify the user without stealing keyboard focus, even if my dialog is minimized at the time. Do I unminimize my dialog? How do I prevent it from stealing focus then?
Any help will be greatly appreciated!
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Instead of SetForegroundWindow, why not install a system nofitication icon[^] while your dialog is doesn't have focus. Then you can display a balloon tip[^] when you want to tell the user that you're done.
There are several Code Project articles on the subject here[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for the reply, this is interesting. I didn't think of doing that, but it'll certainly solve the problem.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I'm thinking of displaying an icon on the tray, and when the operation is done a balloon tooltip emerges and notifies the user. Optionally when the user clicks on it the focus is switched to my app.
The documentation seems a bit complicated, especially about which flags need to be used in the uFlags field of NOTIFYICONDATA. I see I need NIF_ICON and NIF_INFO for balloons, but do I need NIF_TIP also? Can you help me by telling me which flags do I need to set?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I want to read mac address of system from switch cam table. But sometime switch takes long time to learn the mac address of newly connected system on LAN. Have you any idea so that switch learn mac address immediately? Can ping the system helps me?
Thanks.
|
|
|
|
|
I worked on a problem at my previous employer where the switch CAM table[^] was not being updated during high-load network traffic. When we unplugged a CAT-5 cable and moved it to another port, the switch was still routing packets to the old port with nothing plugged in. Perhaps you are having a similar problem?
navneet1985 wrote:
Can ping the system helps me?
Possibly but maybe not. Its difficult to explain but I can try. There are several scenarios to consider:
1.) If the computer your sending the ICMP packet from already has MAC entry in its ARP cache then it will send the packet with the destinatation set as the MAC address in the ARP cache. If the network switch does not have an entry for the MAC address inside the CAM table the packet will be dropped/ignored, switches do not ARP for you.
2.) If the cam-table on the network switch has a MAC entry but for some reason it is incorrectly mapped/poisoned then the network packet will be incorrectly routed.
3.) If the computer your sending the ICMP packet from does NOT have an entry in its ARP cache, the operating system will send an ARP request for you. The ARP response from the remote machine *should* update the cam table in the network switch.
Essentially the network switch will simply perform a lookup in its internal CAM table and route the ICMP packet to whatever port it associates with the MAC address. It updates this entry when it sees an ARP packet.
I would recommend manually sending an ARP request[^] and ask for the MAC address. When the switch recognizes the ARP resonse packet it should update the CAM-table with the new MAC address.
During my experiments with various switches I noticed that some of them would not update the CAM-table during extremely high network traffic. Not all switches are created equal, you get what you pay for... the switches which exibited this behavior were all unmanaged inexpensive "dumb switches".
Hope this helps,
-David Delaune
|
|
|
|
|
How to drag and drop between CListView and CScrollView?
|
|
|
|
|
The standard drag and drop system should work fine for these controls.
Are you having problems getting the events to fire, or in putting the code in the event handlers?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I need a good sample code to reference. Could somebody tell me which source code is suitable for me to study?
|
|
|
|
|
|
Hi!
Created application is working toooo slow, looks like there are a lot of memory leaks, there are a lot of pointers. So, please, can you advice some effective tool for run-time errors and memory leaks detection in Visual Studio C++?
Thanks!
|
|
|
|
|
In the past I've been using AQTime[^] which works pretty well to detect memory leaks and bottlenecks. But it is not a free tool.
For run-time errors, what do you mean by that exactly ? If you have a run-time error, your program simply stops working...
|
|
|
|
|
|
looks like it is really useful one.
Thanks!
|
|
|
|
|
There is a CTabCtrl on a PropertyPage, size of the CTabCtrl is 450x200 in resource design view.
Now I want to add several dialogs (child of the PropertyPage) as contents of the CTabCtrl.
Size of all child dialogs is 410x150 in resource design view.
It sounds OK for CTabCtrl (450x200) containing dialogs (410x150) in size.
But acturally dialogs are much larger than client area of the CTabCtrl at application runtime, I have to resize dialog size to much smaller in resource design to fit the CTabCtrl - I think it is a bad way.
I realize that dialog and PropertyPage use different unit (or something else).
My question is: how to change dialog unit to let it have same unit as PropertyPage (at runtime or design time), so that the CTabCtrl (450x200) can contain original dialogs (410x150) properly?
|
|
|
|