|
It says it is missing msvcr70d.dll and msvcp70.dll. I've tried copying them and placing them into the systems folder on the XP, but it still can't seem to find them. Doesn't 70 refer to .Net 2002 and 7.1 refer to .Net 2003? Thanks for the help.
|
|
|
|
|
msvcr70d is obviously a debug library. I wonder if he tried to build a release.
Sincerely yours, Ilya Kalujny.
|
|
|
|
|
Do you have the compiler installed on all these XP machines?? The complier installs many DLLs that are not system DLLs.
John
|
|
|
|
|
It says it is missing msvcr70d.dll and msvcp70.dll. I've tried copying them and placing them into the systems folder on the XP, but it still can't seem to find them. Doesn't 70 refer to .Net 2002 and 7.1 refer to .Net 2003? Thanks for the help.
|
|
|
|
|
msvcr70d.dll is a debug library, and is part of the .NET install.
Try building the program as a non-debug version.
OR install .net on the other machine.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
|
That's the funny thing. I tried installing Visual .Net on the XP machine and get the same error. Is there such a thing as msvcr71d.dll? I mean Visual Studio (the latest) is 6.0, Visual .Net is 7.0. Is there a Visual .Net version 7.1. Thank you for the help.
|
|
|
|
|
We've already tried installing the Visual .Net on the XP machine. It did nothing for me. It suggests that I re-install .NET I don't know why should even need .Net to run the app. I don't expect to need Visual Studio to run Word on my PC. This is simply too strange. Thanks for all the help.
|
|
|
|
|
For support of tracking CWnd window I use the following sequence.
At the first display on a window.
1. I store a window's rect where will be located CWnd window to a bitmap .
2. I draw CWnd window.
By tracking
1. I restore the bitmap on the same place, where I stored it
2. I store a new window's rect to a bitmap.
3. I draw a new window.
To hide a window
1. I restore the bitmap on the same place, where I stored it
At such construction I see blinking by moving of a window though I do all restores and displays on memory context (CreateCompatibleDC ).
In what the reason and whether is a easy way to tracking?
If I track a window with MoveWindow() function then blinking is not present. But in this case I cannot support myself drawing at moving a CWnd window (for example simultaneously with moving to apply fade-in effect).
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hello,
I want to write an application in Visual C++ that can control an existing windows application, send keystrokes of any kind to an application. Control it as if you were sitting at your keyboard and hitting a hotkey. simulate mouse movement and left, right or middle mouse button clicks. By setting the cursor position to the location of an application's button and clicking the left mouse button - both with a single remote control button - it is even possible to control stubborn apps which do not support messages or hotkeys properly
Can anybody point me in the right direction.
Thanks
|
|
|
|
|
leary wrote:
send keystrokes of any kind
VOID keybd_event(
BYTE bVk,
BYTE bScan,
DWORD dwFlags,
DWORD dwExtraInfo
); or (on NT)
UINT SendInput(
UINT nInputs,
LPINPUT pInputs,
int cbSize
);
leary wrote:
left, right or middle mouse button clicks
VOID mouse_event(
DWORD dwFlags,
DWORD dx,
DWORD dy,
DWORD dwData,
DWORD dwExtraInfo
); or (on NT)
UINT SendInput(
UINT nInputs,
LPINPUT pInputs,
int cbSize
);
leary wrote:
setting the cursor position
BOOL SetCursorPos(
int X,
int Y
);
Hope that helps
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Thanks,
hopefully this will get me up and running.
|
|
|
|
|
Hello!
I am working with views in sizeable dockin control bars (example http://www.codeproject.com/docking/dockview.asp)
but this is not really my problem.
What i need is to dynamically change the size of the underlying View-Class (CFormView) - In this example, the Size of the View is defined by the size of the Resource.
I tried to do this with the MoveWindow()-Funktion - but this cannot work, since this operates on the displayed window.
I need to create Controls dynamically and resize the view - so all controls can be displayed. The size of the displayed window should stay the same - only the scrollbar-ranges should chang as a reaction to the new size.
a million thanks if anybody can help me.
|
|
|
|
|
Hello Again!
I have now found a way to accomplish this. Maybe there are other ways, but I am very new to the MFC Framework (in fact, this project is my first work with MFC and the MDI)
I have changed the members CScrollView - Data Members
"m_totalLog" and "m_totalDev" with my new SIZE-Struct and Called the
OnSize() method of CScrollView to reflect the changes.
Now I can position new Elements on my view dynamically.
Anyway - maybe someone knows a better way, or find this information useful.
greetings from Austria
Martin
|
|
|
|
|
I have a SDI application with the view class derived from CRichEditView. The following code behaves different on one of of our machines:
long posError=0;
FINDTEXTEX text;
text.lpstrText="Error (";
text.chrg.cpMin=0;
text.chrg.cpMax=-1;
posError=GetView()->GetRichEditCtrl().FindText(FR_MATCHCASE|FR_WHOLEWORD, &text);
if(posError!=-1)
{
DoSomething...
}
On most machines it works fine and finds the lines containing "Error(" but on one machine it only works when I don't use the FR_WHOLEWORD flag in the FindText function. I never came across this problem ever before and can't imagine any reason for that. I'm "at the end with my latin" as we say in german. Does anybody have an idea ???
MS
|
|
|
|
|
Hi
I'm programming a plugin for an application, and I want to subclass the WindowProc of the main window to receive its messages and then forward them to the main window.
this is what I currently do:
WNDPROC pOrigProc = (WNDPROC)SetWindowLong(wndMainForm, GWL_WNDPROC, (LONG)HookWndProc);
This works, the WNDPROC will be redirected to my WindowProc:
LRESULT CALLBACK HookWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
case WM_MOVE:
MessageBox(NULL, "WM_MOVING", "", MB_OK);
return 0;
break;
case WM_SYSCOMMAND:
if(wParam == SC_MINIMIZE)
return 0;
break;
default:
break;
}
return CallWindowProc(pOrigProc, hwnd, uMsg, wParam, lParam);
}
For some reason, neither the message box appears, nor will the main window be prohibited to me minimized, although I don't redirect the WM_SYSCOMMAND-message (return 0). But the windowproc itself gets called. So what's wrong here?
regards
Greg
modified 12-Sep-18 21:01pm.
|
|
|
|
|
It seems that you're subclassing a child of the main window.
If you're using MFC then wndMainForm must equal m_hWnd of the CFrameWnd -derived class.
rechi
|
|
|
|
|
Hi there
does ne1 know how to convert a string to a long
my string contains numeric characters
ie. mystring = "42309492"
or mystring = "-42342"
im using the below but its not working
char * pEnd;
long l;
l = strtol (mystring,&pEnd,0);
can ne1 help
thanks
si
|
|
|
|
|
|
Use the standard library with string streams
#include <sstream><br />
<br />
const char* buffer = "1023451235";<br />
istringstream iss(buffer);<br />
long myLong;<br />
iss >> myLong;
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
you can use atol(), as replied by the above post.
But the reason strtol() is not working in your code is because you havent specified the correct number base.
<br />
l = strtol(mystring, &pEnd, 10)<br />
"..Even my comments have bugs!"
Inspired by Toni78
|
|
|
|
|
Hi,
I have a problem with my ListCrtl. I use InsertColumn to set the headlines over my columns but I want, that the user can not move the headlines. They should be fix.
I hope somebody can help me how I can solve this problem.
Bye
Julia
|
|
|
|
|
if you use
CListCtrl& ctlList = (CListCtrl&) GetListCtrl();
// set the style of the list control
ModifyStyle ( LVS_TYPEMASK, LVS_REPORT);
ListView_SetExtendedListViewStyle (m_hWnd, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES );
that set it so columns cant be moved
if you use
ListView_SetExtendedListViewStyle (m_hWnd, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_HEADERDRAGDROP);
then you can move the columns
hope this helps
|
|
|
|
|
Thank you for your tip, but
can I realize that without ListView?
I have only a membervariable type listctrl in my class CBPageDlg : public CPropertyPage.
|
|
|
|
|
The terms "control" and "view" are confusing here.
The ListView_SetExtendedStyle macro works perfectly on "normal" CListCtrls.
Btw, you can also use (I recommend this) CListCtrl::SetExtendedStyle [DWORD SetExtendedStyle(DWORD dwNewStyle);] .
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|