|
I gone through the article.
But I still couldnt solved the problem.
Can somebody help me plz!!
Also Its written there in article that MS is going to release SP1 for VS2005. Do u know when it will be released??
Thx!
|
|
|
|
|
Firstly, don’t place any application specific DLLs in System32. Place them in the folder that contains your executable. It helps avoiding DLL hell!
Secondly, try this article:
http://blog.kalmbachnet.de/?postid=80
I don’t have VS 2005 on my system. So I can't reproduce your problem. But you'll have to look at some more options.
Abhishek
|
|
|
|
|
Hi all
I have created a tooltip for a button.
How to show this tooltip from the application?? ie I need to Show the ToolTip Message for the button from my application code.
thanks
Manjunath S
Bangalore
|
|
|
|
|
call the RelayEvent function of tool tip from the PreTranslateMessage function. The tootip will popup when the u move mouse over that button.
nave
|
|
|
|
|
Hi, thanks
In my case Tooltip will popup when mouse moves over the button, but i need to popup the tip text from my application (by hard coding)by sending some messages.
I tried SendMessage with POPUP flag, but i am not getting(SendMessage returning NULL).
Manjunath S
Bangalore
|
|
|
|
|
|
See
<br />
m_tooltip.Create(this);<br />
SetToolTip("ADAD");<br />
<pre><br />
void CAnswerView::SetToolTip(LPTSTR ToolTip)<br />
{<br />
TOOLINFO ti;<br />
ti.cbSize = sizeof(TOOLINFO);<br />
ti.lpszText = ToolTip;<br />
ti.hinst = AfxGetInstanceHandle();<br />
ti.hwnd = m_Button.m_hWnd;<br />
<br />
ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND;<br />
ti.uId = (UINT) m_Button.m_hWnd;<br />
m_tooltip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti);<br />
}<br />
|
|
|
|
|
I don't know what I hae done, but my app no longer supports input from the IME (Input Method Editor). When I try to change the input language using the hotkeys (CTRL + SHIFT) nothing happens, the input language does not change. When I try to select the language from the Task bar, my app loses focus and still the language does not change. The IME works for other programs, just not my own. I have no idea where to even start looking for the cause of the problem. Any help would be greatly appreciated.
|
|
|
|
|
You shold change key lang with ALT + SHIFT no CTRL + SHIFT .
|
|
|
|
|
Well thankyou so much for that useful unsight into the correct keys. But, you are slightly wrong. Users, such as myself, are able to change the key combination. Here in China, the preferred is to use the SHIFT + CTRL.
As a follow up to my problem, it is now fixed. I do not know what was the cause. I started commenting function calls hoping to narrow it down a little, after uncommenting the problem vanished. Please note, no code was changed.
|
|
|
|
|
Hi
I have an MDI application.I want to remove the default menu bars and toolbar provided and place a customized toolbar instead.So I removed
the added menu bar code and toolbar code from CMainframe::Oncreate().
When I executed the application the toolbar is removed but the menu bar of childframe still exists.
I tried placing setmenu(NULL ) in childframes OnCreate but no use.
int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;
//(CChildFrame *)(GetParentFrame( ))->SetMenu (NULL);
this->SetMenu (NULL);
this->ShowWindow (SW_SHOWMAXIMIZED);
return 0;
}
Can anybody please tell me what more i can do?
Thanx
Today is a gift, that's why it is called the present
-- modified at 5:31 Wednesday 9th August, 2006
|
|
|
|
|
|
Hi,
I want to invoke a Remote Desktop connection Programmatically. It should take 3 Parameters:ComputerName,UserName and Password for Logon, then I should be able to run a ".exe" in the Remote Machine to which i Logged on.
Please Help me. I had tired using the API:WNetAddConnection2, Here is the Piece of Code which i tried.
NETRESOURCE nr;
DWORD res;
TCHAR szUserName[32] = "administrator",
szPassword[32] = "admin123",
szLocalName[32] = "Z:",
szRemoteName[MAX_PATH] = "\\\\deepa";
nr.dwType = RESOURCETYPE_ANY;
nr.lpLocalName = szLocalName;
nr.lpRemoteName = szRemoteName;
nr.lpProvider = NULL;
res = WNetAddConnection2(&nr, szPassword, szUserName, FALSE);
DWORD err=GetLastError();
I have added the link file mpr.lib under Project->Setting->Link.
I am getting the Following Error:1203
Thanks in Advance,
Deepa
|
|
|
|
|
Deepa N wrote: I am getting the Following Error:1203
Which is ERROR_NO_NET_OR_BAD_PATH .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello people.
I am trying to serilaize a class which has a vector.
I put the vector into a class and tried my luck, but no avail.
Could somebody show\tell\advice me about how to serilaize a vector and read it back, (when the size of the vecor is not known at compile time)?
Thanks in advance.
Abhishek
|
|
|
|
|
what you have to do is basically this :
serialize first the number of elements in the vector
then, loop on the vector and serialize each object. (the classes contained in the vector mest be serializable, of course).
when you'll try to deserialize, read the number of elements that come next, and loop to deserialize the objects...
|
|
|
|
|
Note that in case of MFC, CArray and CArchive classes, the serialization and de-serialization of a vector can be done in this manner:
CArray<int> my_vector;
CArchive ar(...);
my_vector.Serialize(ar);
I think you should specify which kind of vector are you using.
|
|
|
|
|
Actually I am guilty of not having described my problem sufficiently.
I am not using MFC in my program. I am trying to sterilize everything by using the ofstream::write((char*)&Object, sizeof(object)); That's because I am working on an AutoCAD plug-in that requires an extra bit of gymnastics to use MFC. Also, I did not want to eliminate suggestions by talking too much of my idea of the problem.
But here it is:
I am writing a project handling tool that handles "n" number of files as a project. Data from each file is kept in a structure\class (say FileStruct) in 2 2D arrays and a few strings. I wanted to replace these 2D arrays by vectors. Also the project itself is only a collection of "n" number of FileStructs. So wanted to make a vector out for that as well.
So the final object waiting to be serialized would conceptually look like this:
Object X {<br />
vector[FileStruct] {<br />
vector<2D_array_replaced>;<br />
}<br />
}
But from the looks of it, I have to use MFC now. I tried boost, but I am just not being able build the serialization library with VC 7.0 (which is what I have to use for AutoCAD plug-in)
What do you guys suggest?
Abhishek
|
|
|
|
|
Hi all,
1) if i want to send 4MB of Data through Socket is there any limitation to send Data towards the Receiver who listen the Socket.
2) why we have to use select(...) in the Socket what is the use.
3) what is the Difference between Blocked and UnBlocked Socket.
4) Why we have the Option FD_SET, What is the Senario to Use this Option.
please give me your suggestions regarding this.
Uday kiran
-- modified at 4:43 Wednesday 9th August, 2006
|
|
|
|
|
uday kiran janaswamy wrote: 1) if i want to send 4MB of Data through Socket is there any limitation to send Data towards the Receiver who listen the Socket.
No, and as a matter of fact, you could even send 4.1MB if you really wanted to. You just can't send it all at once.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Please i want to have a full source code through which i can read & save the data coming from the serial port of our PC's... please can anyone help me with this?
Jawad
|
|
|
|
|
|
yeah i've tried but aint getting anything useful. So can u please help me out? i'll b really thankful to u...
|
|
|
|
|
|
Thankyou very much Whitesky
Thanks 4 ur help
|
|
|
|