|
I have a membervariable of the type LARGE_INTEGER. This type is a union. I can assign it a value of -100000 (i'm using this for a WaitableTimer's DueTime) via the QuadPart-Member and everything works fine. But if i multiply this value with another variable of type unsigned int with value 5, the LARGE_INTEGER contains some crazy value, and the timer is non-stop signaled. Any ideas how to get him to do the multiplication correctly ?
|
|
|
|
|
Just need to cast the unsigned int to int, then it works fine.
|
|
|
|
|
Hi all,
I am writing a COM server program. In that I created a interface "MyIDL". Here is the source.,
import "Unknwn.idl";
//My Interface
[
object,
uuid(E0985393-CD6E-4a1f-8737-C250238FC8FC),
helpstring("My Interface"),
pointer_default(unique)
]
interface IX : IUnknown
{
HRESULT Function([out]char *str)=0;
};
When I compile I am getting these errors.
1] error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ Interface 'IX' ]
2] error MIDL2096 : duplicated attribute : [helpstring] [ Interface 'IX' ]
3] error MIDL2096 : duplicated attribute : [uuid] [ Interface 'IX' ]
How can resolve this? I know these questions might be silly. But please anybody help me. So that I could learn COM Components.
|
|
|
|
|
COM[^] forum is appropriate for such questions.
Sakthiu wrote: When I compile I am getting these errors.
1] error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ Interface 'IX' ]
2] error MIDL2096 : duplicated attribute : [helpstring] [ Interface 'IX' ]
3] error MIDL2096 : duplicated attribute : [uuid] [ Interface 'IX' ]
It seems that you have used /mktyplib203 options. Which is obsolete now. Try compiling, without this option using MIDL compiler.
See this[^] link for more information.
|
|
|
|
|
hi der..
my project uses a keybord hook to handle the multimedia keys on the keyboard.but the system becomes stuck on pressing those keys..the program works fine for all the other keys..me tried WH_JOURNALRECORD and WH_KEYBOARD hooks..for the multimedia keys the hook procedure not even getting the message..
the system hanging in a peculiar way..mouse movement is ther but cant click buttons..for the keybord only window is working..plz help me..
thanks in advance
joe
|
|
|
|
|
Hi All,
How does one get the page rank of a certain URL using VC++ (.NET2003). Does there exists some API that could be used to do so?
I have already googled for the same but all was in vain.
Thanks, Before Hand.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Does google offer a C++ SDK ? I don't know, perhaps you need to check with them ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Does google offer a C++ SDK ?
Most probably No. Once I searched for it but couldn't find any.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
Thanks for your reply Christian Graus
Christian Graus wrote: Does google offer a C++ SDK
I have been searching for the same for quite a few days now but couldn't find any.
Can you suggest some other idea for calculating the Page Rank.
Thanks...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
No - that's kind of my point. If there is no C++ SDK you can call, then I don't see how you expect to get this info out of google ( which is where it lives, after all )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
This page[^] describes how a (shudder) VB program can talk with google's web services - if VB can do it, then there's no reason you couldn't do it in C++ too
|
|
|
|
|
|
|
Sir,
I want to connect the database(Sql Server) to vc++.net programically.I also want to use insert delete update queries in the form .Please help me or please send any link for the problem.
Thanks.
Earlier i was given the answer for the above question but i was given the link
www.codeproject.com/database[^]
But the link contains only the connection strings
Please help.
Thanks
|
|
|
|
|
VC++.net? you mean the Managed one? If so, why not you use the SQl connections and Sql Adaptors?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
can u please send any link for help?
|
|
|
|
|
Sure, Please find it here^
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
|
I have an application with diferrent views.
I named each view as Groupview,grphview.etc,I stored number in to seperate varaible as int Windownumber =1 for groupview and respectively.
In childfrm.cpp class in Precreateview it codes like
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
if(iWindowNumber == -1) //Splas
{
cs.x = -15;
cs.y = -15;
cs.cx = 7500;
cs.cy = 7500;
cs.style &= ~(WS_BORDER);cs.style &= ~(WS_THICKFRAME);
cs.style &= ~(WS_MAXIMIZEBOX);cs.style &= ~(WS_MINIMIZEBOX);
}
else
{
cs.style &= WS_CHILD | WS_VISIBLE | WS_MAXIMIZE | ~WS_SYSMENU;
}
return CMDIChildWnd::PreCreateWindow(cs);
}
And in OnCreate it code like
else if(iWindowNumber == 6)
{
if (!m_wndWindowTool.Create(this,CBRS_TOP|CBRS_TOOLTIPS|CBRS_FLYBY|WS_VISIBLE |CBRS_FLOAT_MULTI) ||
!m_wndWindowTool.LoadBitmap(IDB_GROUPVW) ||
!m_wndWindowTool.SetButtons(CtrlGrp,
sizeof(CtrlGrp)/sizeof(UINT)))
{
TRACE0("Failed to create toolbar\n");
return -1;
}
m_wndWindowTool.SetWindowText("Graphic");
m_wndWindowTool.SetSizes( butSize,bmpSize );
m_wndWindowTool.SetHeight( 40 );....
.
.
.}
Like this.
I want to resize my view class and my view (GraphView)displayed with out maxi,min box.I want to resize it.
What can i do?My application looks like..I have menus in main window..WHen i click each menu different view will be displayed.But each view can not be resized.I have to resize ..so what can i do?
I include precreatewindow in that particular view class but it gives Assertion error in return statemnet.
So i included WS_OVERLAPPED in precreate as well as in OnCreate in childfrm.cpp,but no use.Nothing look different.
Pls help me
Anu
|
|
|
|
|
How can i access the index for a table from my database in my CRecordet class?
lets say i have the class CRecordset = CDatabase1
in my header file i see only the columns not the indexes for columns for ex : col name : "NAME" in my header file->CString m_name but the index i don t see him his name is "name" .!
please help me how can i access the index ?
Bravoone
|
|
|
|
|
I'm not entirely sure of what you are asking, but have you considered CRecordset::GetStatus() ? It will return the zero-based index of the current record in the recordset, if its known. Is that what you want?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi everyone,
I want to enumerate desktop items and Im using int i; m_Active->GetDesktopItemCount(&I,0);
but always it return 1 but I have many items on my desktop how can I solve this problem?
Thanks
|
|
|
|
|
messages wrote: GetDesktopItemCount
I didn't know that existed, cool thanks.
Did you reference this from the MSDN[^]?
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I see but its same return 1 Do you know an example of it
Thanks
|
|
|
|
|
messages wrote: GetDesktopItemCount
Its name is some what misleading. But it refers to desktop items, related to IE.
It will enumeratre items in Desktop-->right click-->properties-->Desktop-->Customize desktop-->Web. I'm refering XP BTW.
For more information refer help of IE .
|
|
|
|