|
Yes.
gcc -m64
Maxwell Chen
|
|
|
|
|
My app uses an old style MFC File open dialog box.
I noticed that in Microsoft Word - File Open dialog box, if you click the drop down box for the "Look in" field at the top, there is an option at the bottom that says FTP Locations.
One can use this option to open files from a remote location via FTP directly into MS Word.
I need this ability in my app but I can't figure out how. I have looked through the MFC documentation and I can't find squat!
Any help appreciated.
George W
Software Developer
www.zsystems.ca
|
|
|
|
|
|
Hi,
I am creating a CListCtrl component, with the style "owner draw fixed" on. I'm catching the WM_CONTEXTMENU message in order to recognize right-click on the list control, and then I use HitTest
function to look if the mouse is on one of the items.
I find that I get return value 0 even if my mouse is on the header
row. I use ScreenToClient function previous to calling HitTest.
How can I recognize that I'm on the header row ?
Many many thanks in advance to anyone of who has an idea.
g_sol_1
|
|
|
|
|
Before doing the HiTest call, can you do a WindowFromPoint() and see whether it returns the GetHeaderCtrl() CWnd* pointer or the CLIstCtrl pointer, as the header should be a different child window of the main control.
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
Thanks Roger for your prompt reply !
Your solution works great, but I'm trying also different approach
to my problem, here is another question in this area:
Is it possible to catch the ContextMenu event when it is fired from the header control so it will not pass on to the list control ?
If you or anyone else knows the answer and has some time to reply, It will be great.
Thanks again, Gidi Gal
|
|
|
|
|
This function is not being nice to me! Here's what I have:
KeyInfo.h:
class CKeyInfo : public CObject
{
public:
CKeyInfo() {}
virtual ~CKeyInfo() {}
DECLARE_SERIAL(CKeyInfo)
virtual void Serialize( CArchive &ar );
};
KeyInfo.cpp:
IMPLEMENT_SERIAL(CKeyInfo, CObject, 1)
void CKeyInfo::Serialize( CArchive &ar )
{
CObject::Serialize(ar);
if (ar.IsStoring())
{
}
else
{
}
}
MyDoc.h:
class CMyDoc : public CDocument
{
...
private:
CArray<CKeyInfo *, CKeyInfo *> m_arrKeyNames;
};
MyDoc.cpp:
void CMyDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
}
else
{
}
m_arrKeyNames.Serialize(ar);
}
I've tried placing this function in several places, all to no avail. I've also tried it with several different signatures (e.g., Internet examples, MSDN). It never gets called. The default implementation (in afxtempl.h) does, though.
template <>
void AFXAPI SerializeElements <CKeyInfo> ( CArchive &ar, CKeyInfo *pKeyInfo, int nCount )
{
for (int x = 0; x < nCount; x++, pKeyInfo++)
pKeyInfo->Serialize(ar);
}
Anyone see what I might be doing wrong?
Thanks,
DC
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
hey,
what do i have to do to run my process in the LocalSystem Contex ?
Thanks in advance!
|
|
|
|
|
Hi,
I want to retrieve the CONNECTED computer names of a network. I want to avoid giving users the ability to submit their own 'server string', therefore i want to somehow retrieve the computer names of a network and place them in a tree view. It should look the same as, for example, the Window Explorer, only you won't be able to 'go deeper' into the hierachy (like folders etc.). I hope you understand what i'm trying to say......anyway....all help is appriciated.
Many thanks,
Abebe
Er zit een korstje op mijn aars.
|
|
|
|
|
I think you are looking for WNetOpenEnum() and WNetEnumResource() .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Thanks! I checked those methods out earlier, but i kept getting mapped network drives and other stuff. I didn't check the 'scope' argument properly.
Thanks again.
Er zit een korstje op mijn aars.
|
|
|
|
|
Help! I'm working on a project that involves capturing fingerprints and encoding them as PDF 417 barcodes on a cheque. Can anyone provide an mfc style api that reads and prints barcodes in this format?
I'll appreciate if it's free Pls.
|
|
|
|
|
There are some articles on printing / drawing barcodes here:
Bar code aritlces[^]
Not sure about reading them, look like you will need to get hold of seom hadrdware that can scan barcodes, usually they just convert it to the equivalent keyboard key presses.
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
Thanks Roger.
I've seen the article u suggested. It doesn't cater for PDF 417 barcodes.
Please any further help will be appreciated!
What will life be without politicians and programmers?
|
|
|
|
|
I've found many good samples about DataGrid, but I'm a freshman & couldn't understand them completely.
I need a good sample that demonstrates how to link DataGrid Component to my database. I mean how to fill DataGrid's column by data from my database.
If anyone can help me please e-mail it:
keeper_@km.ru
Thanks in advance.
|
|
|
|
|
|
Hello,
Does anybody know how to cast a IXMLDocument object into a VARIANT type object?
Thenks a lot
|
|
|
|
|
|
Thanx a lot for the Info. How do I do the first part of 'Query IXMLDocument for IDispatch'?
|
|
|
|
|
|
Hello!
I'm trying to use an ActiveX dll written in VB from my VC++ program.
After reading the article
http://www.codeproject.com/com/vb_from_vc.asp
I still have some problems.
I thought the compiler would generate error-free files for me to use!
In the project settings I have made the compiler create a h-file and a c-file when compiling the idl-file, which works just fine. Those files are included in my project, but then these errors occur when I try to build it.
1. In my generated c-file I get this error:
fatal error C1010: unexpected end of file while looking for precompiled header directive
2. I include my generated h-file in my dialog, but I get an error:
error C2061: syntax error : identifier '_sockdata'
The declaration in the h-file looks like this:
virtual /* [id] */ HRESULT STDMETHODCALLTYPE SendToServer(
/* [in] */ /* external definition not present */ _sockdata __RPC_FAR *MySesH) = 0;
Please, if you have any idea what I could do to solve the problem, give me a reply! Thanks!!
|
|
|
|
|
First you would have to disable pch(precompiled headers) for the files when you include them in your project. Second, you have to make sure that you include references to anything you add in your VB project. In this case try adding #import "c:\windows\system32\mswnsck.ocx" assuming that is what was included in your vb project for win sock ability. Add it before you include the header file generated from midl. An alternative to using this method is to include two lines in your stdafx.h.
#import "mswnsck.ocx"
#import "vb.dll" no_namespace named_guids // rename to correct name for your activx dll.
This should fix the problem. however, another may pop up depending on if you have anything other than the standard references or controls added to your vb project.
|
|
|
|
|
Thanks!
I also tried not including the c-file in my project which got rid of problem no 1...
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
I have a CAsyncSocket derived class.
int retval=m_inSock->Create(inport,SOCK_DGRAM);
this line causes creation of both UDP and TCP sockets at windows98.
The same problem is not appeared at Windows 2000.
i cauth that result by "netstat -a"
How come this is possible?
In release mode, program doesn't terminate.. giving the same errors and i have to reboot the computer to get out of it.
In debug mode everything seems fine.
Thanks in advance.
|
|
|
|
|
I am not familiar with winsock wrapper. Check the source code and make sure it does not call IPv6.
Kuphryn
|
|
|
|