Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1526: Problem showing function parameters ..
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hila123
New Member

3 Posts

Posted - Jun 30 2006 :  4:45:50 PM  Show Profile  Reply with Quote
Hi,

I'm using the latest beta (1526, VS2005, C++) and having the problem showing the parameters list for SendMessage function, VA will only show the last 3 paramters....the first HWND parameter is ignored...or actually it's having problem showing parameters if the function first parameter is HWND....this problem is never happened in 1524....

Edited by - hila123 on Jul 01 2006 11:55:04 PM

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Jun 30 2006 :  5:24:32 PM  Show Profile  Reply with Quote
Is this in an MFC project? Sounds like VAX is picking up the prototype of CWnd::SendMessage instead of the Win32 API SendMessage. If you are calling SendMessage from within a method of a CWnd-descended class, you must use the scope resolution operator (::) to get the Win32 version of SendMessage to use a different HWND. If it's not an MFC project, does using the scope resolution operator (ie, ::SendMessage) make any difference in VAX's parameter suggestions?

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

hila123
New Member

3 Posts

Posted - Jun 30 2006 :  5:46:56 PM  Show Profile  Reply with Quote
it's pure Win32 project...
but using the scope resolution operator does resolve the problem....the weird part is why this never happened in 1524?
Go to Top of Page

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Jul 01 2006 :  1:02:31 PM  Show Profile  Reply with Quote
If you type SendMessage without scope resolution and press Alt+G, where do you wind up? That'll be the (incorrect) context VA X thinks you're currently in. Then close the solution, delete the .ncb file for your solution and clear the symbol cache & rebuild symbols for VA X, then try this again to see if it behaves any differently.
Also, do you have Get Content from Default Intellisense turned on?

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jul 01 2006 :  4:50:43 PM  Show Profile  Reply with Quote
strange. using VS2005, C++ and VA 1526 i am seeing 4 parameters for SendMessage()
this is a pure C++ project, with no MFC classes in it.

does disabling VA make any difference?

zen is the art of being at one with the two'ness
Go to Top of Page

hila123
New Member

3 Posts

Posted - Jul 01 2006 :  11:37:25 PM  Show Profile  Reply with Quote
hi,

after typing SendMessage and press Alt-G, VA shows 3 results (1526)
afxwin32.inl:46 AFXWIN_INLINE LRESULT SendMessage(UINT message, WPARAM wParam, LPARAM lParam)
afxwin.h:2101 LRESULT SendMessage(UINT message, WPARAM wParam, LPARAM lParam)
afxwin.h:2100 LRESULT _AFX_FUNCNAME(SendMessage)(UINT message, WPARAM wParam = 0, LPARAM lParam = 0)

i disabled the intellisense by rename feacp.dll to feacp.0dll...so i think Get Content from Default Intellisense is not turned on....it's the same even i rebuild the symbols..

here is the results i get when i press Alt-G in 1524
winuser.h:3140 __inline LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
winuser.h:3127 #define SendMessage SendMessageA
winuser.h:3125 #define SendMessage SendMessageW

seem likes VA think i'm in MFC project....

Edited by - hila123 on Jul 01 2006 11:38:59 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 02 2006 :  11:27:55 AM  Show Profile  Reply with Quote
If MFC is listed in the stable include files of Projects|Directories in our options dialog, VA X will know the symbols regardless of whether you use them or not. Assuming platform is not Custom in that dialog, VA X gets the settings from the IDE.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000