|
Hi.
I've just started to look into GDI+. Everything works fine except the infamous function GdiplusShutdown() . The linker gives this message:
TegeTest.obj : error LNK2001: unresolved external symbol _GdiplusShutdown@8
Debug/TegneTest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I known this problem has been discussed some time ago, but has anyone found a remedy lately? I'm using Windows 98 and have downloaded the full SDK.
In practice, is there a problem? It is always called at app. exit, in which case Windows cleans up everything anyway. Or...?
Regards, Haakon S.
|
|
|
|
|
You're using the wrong definition of ULONG_PTR. It should be:
typedef unsigned long ULONG_PTR;
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
On the spot, that was the fix!!
Thanks! Takk! Merci!
|
|
|
|
|
I used SystemParameterInfo(SPI_SETWHEELSCROLLINES,......) to chanage the scroll line and it works well.
But in Microsoft Word, it does not work.
Why???
Is this a limitation? Or anyone have any ideas???
|
|
|
|
|
i wrote an application which check the new file arrival in an FTP ..and i used the concept to check the Files Currently and store the Date of the rescent file.and check there is any new files in the next time..
my problem is:
CTime oTime;
GetLastWriteTime(oTime);
but the oTime.GetSecond() returns ZEROOOO always..!! what s the reason..??
ANY IDEAS????
Renjith-CPian.
|
|
|
|
|
check the GetLastWriteTime return value
MSDN:
"Nonzero if successful; 0 if unsuccessful. GetLastWriteTime returns 0 only if FindNextFile has never been called on this CFileFind object."
I'd bet you miss the FindNextFill call
|
|
|
|
|
Yo Yo Maaann...
Everything is OK here ..but i can retrieve up to the minute..but not seconds and milliseconds...
Renjith-CPian.
|
|
|
|
|
hi .. im making a database prog in vc.. through odbc using microsoft access as a back end
but whenever i try to add record i get a message dat
record set is read only
plz hlp me out
looking forward from all the gurus of code
|
|
|
|
|
What type of cursor do you use when you open DB? It shouldn't be forwardonly .
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
how to get windows message hnadler & how to set hooks for mouse and keyboard
strokes in MFC?
|
|
|
|
|
Check this:
http://www.codeproject.com/dll/#Hooks
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
can u please tell how to get handle for all keyboard events (ie how to get message handler for keyboard events & mouse events)
|
|
|
|
|
SetWindowsHooEx Win32 API found in the Platform SDK, there are also examples of this API in use.
Normski. - Professional Windows Programmer
|
|
|
|
|
Why convert ? Use a dibsection in the first place.
Read the FAQ for tons of ways to save them.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
I was written a DLL and used in an app in VS6 SP5. I just copied the .DLL and .LIB files to the app directory and in the app's sources, I included the header files of them. For debuging in the app, I can set breakpoint and go to the DLL source by pressing F11.
However, after upgrade to VS .NET, I couldn't debug from APP to go to the DLL's souce files. How can I solve it ? or any other means to debug the DLL ?
Thanks
|
|
|
|
|
Dear all,
In a dialog based application, i want to induce another dialog by
using menu command.
For example,
CMyDialog dlg;
dlg.DoModal();
But i found that the DoModal() cannot be accessed.
What is my missing for this problem?
Thanks in advance!
chen
|
|
|
|
|
what value is DoModal returning?
Bryce
|
|
|
|
|
Thanks Bryce!
The error info is
"Debug Assertion Failed"
File: Viewform.cpp
Line 69.
I want to know are there any other methods for accessing from
one dialog into another dialog.
Thanks in Advance!
chen
|
|
|
|
|
|
Just a guess but it can be a resource id clash. I would open the resource file (resource.h) and make sure all the resource id's are unique.
|
|
|
|
|
Thanks for replys.
I have checked the resource ID, there is no problem.
By step debug, I found that the problem is at the creation of the window.
In CMyDlg I have the following function
BOOL CMyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
frame_window = new CFrameWnd();
CRect rect;
GetClientRect(&rect);
rect.bottom -= 10;
BOOL bCreate = frame_window->Create(NULL, "",
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN, rect, this, 0);
CRuntimeClass* run_time_class =RUNTIME_CLASS(CGraphView);
if (run_time_class != NULL)
{
grview = reinterpret_cast<cgraphview*>(run_time_class->CreateObject());
};
frame_window->GetClientRect(&rect);
bCreate = grview->Create(NULL, "", WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN, rect,
frame_window, 1);
grview->SetAxisProps("X-Axis", "", 4, GRAPH_X_AXIS, TRUE);
grview->SetAxisProps("Y-Axis", "", 4, GRAPH_Y_AXIS, TRUE);
grview->SetGraphWorldCoords(0, POINTS_X_RANGE, -1, 1, TRUE);
return TRUE;
}
It will call the grview creat function.
It is:
BOOL CGraphView::Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
BOOL b = CScrollView::Create( lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
m_splitter.CreateStatic(this, 1, 2, WS_CHILD | WS_VISIBLE);
m_splitter.SetRowInfo(0, 100, 0);
m_splitter.SetColumnInfo(0, 100, 0);
m_splitter.SetColumnInfo(1, 100, 0);
m_splitter.CreateView(0, 0, RUNTIME_CLASS(CGraphContainer), CSize(200, 200), pContext);
//This code cannot be implemented ! -----------
m_splitter.CreateView(0, 1, RUNTIME_CLASS(CPointsView), CSize(200, 200), pContext);
// ---------------------
pointsview = (CPointsView*)m_splitter.GetPane(0, 1);
grafix = (CGraphContainer*)m_splitter.GetPane(0, 0);
//set minimum size for CPointsView
m_splitter.SetScrollStyle(0);
m_splitter.RecalcLayout();
bSplitterCreated = TRUE;
RECT r;
GetClientRect(&r);
m_splitter.MoveWindow(0, 0, r.right - r.left, r.bottom - r.top);
//no scrolling at all - at least for now
CSize sizeTotal;
sizeTotal.cx = sizeTotal.cy = 0;
SetScrollSizes(MM_TEXT, sizeTotal);
return b;
}
Would you please this: in order to splite the window how to set
the correct size of the window?
Thanks in advance!
chen
|
|
|
|
|
I've read from MSDN that the M$ specific Winsock function AcceprEx when returns in overlapped fashion gives the accepted socket descriptor that is passed as one of its arguments.
But in MSDN doc it is written that this socket descriptor can be used with read(),write(),readfile(),writefile().
Can anyone tell me why this descriptor can't be used with WSARead() and WSAWrite or it can be.
|
|
|
|
|
I'm sure that AcceptEx can be used with WSARecv WSASend.
Normski. - Professional Windows Programmer
|
|
|
|
|
Hi...
msdn.microsoft.com
has the search box, double click on it and it drops down btu has a resize corner..which you can use...
does anyone know how to mimic this?
bryce
|
|
|
|