|
Hi superman
i use 2nd link which is given by you.I go through step by step but i got error
: error C3861: 'AutoWrap': identifier not found
|
|
|
|
|
AutoWrap problem solve.
But how can i save this file like(C:\add.xlsx).
|
|
|
|
|
MsmVc wrote: But how can i save this file like(C:\add.xlsx).
Use the Workbook::Save() method.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
Hi,
I need to export some Registry Keys in HKCU in my application, so I simply make a call to regedit and user commandlineparameters /s /e to export these keys to a file. This used to work fine, but under Windows 7, everytime I call regedit I get an annoying message from UAC asking the user to allow this (in my eyes really uncritical) action.
Do you have any suggestion how I can easily export a whole registry key to a reg-file, without getting a UAC warning?
|
|
|
|
|
You need to elevated privileges to run <code>regedit.exe</code>.
So you either select allow from the UAC prompt or run <code>regedit.exe</code> from an elevated process.
For example, if you run <code>cmd.exe</code> in elevated mode and then run <code>regedit.exe</code> from this command prompt you will not be asked whether to allow or deny.
|
|
|
|
|
Will RegSaveKeyEx() work for you?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hello Friends
I am having one file in java tht is having one class with two functions.
I want to use that function in My another c++ application.
Is that Possible?
Or PLease Suggest me some other Ideas?
Thanks IN Advance.
Regards
Yogesh Sikri
|
|
|
|
|
If it is just one or two functions, why not write a C++ implementation?
|
|
|
|
|
Actually ,that code encrypts the file and I dont know that same class in c++ and Moreover If i encrypt in c++ then I have to decrypt the same in java code.
Any Ideas??
Do u know the some classes in C++ for encryption as In java ,we r using like Cipher.keyGenerator,SecretKey.
And If it is possible to call java function in c++ code then please tell me that way some Ideas.That makes my work faster as I am in very short span of time.
Regards
Yogesh
|
|
|
|
|
|
Hi,
2 days back i posted for change position and size of maximising window.With our forum friends help,i get the solution.But now i face one problem that after maximising the child windows, the caption bar is not updated ,It just display as blue color blank bar.
Any one pls help me to sort out of this problem.
void CChildFrame::OnSize(UINT nType, int cx, int cy)
{
CMDIChildWnd::OnSize(nType, cx, cy);
int XBorder = GetSystemMetrics(SM_CXMAXIMIZED);
int YBorder = GetSystemMetrics(SM_CYMAXIMIZED);
switch (nType)
{
case SIZE_MAXIMIZED:
if (::IsWindow(this->m_hWnd))
MoveWindow(40,40,XBorder-50,YBorder-40,TRUE);
break;
}
}
When i debug,this OnSize() getting called four times.
Anu
|
|
|
|
|
The container item would be a pointer to an object composed of a key and a pointer to another object.
The key will be a composite key, composed of 3 or 4 subkeys appended to each other in relative level of significance.
I'll need to be able to access the items in ascending order, based on a partial key lookup. Then after
getting the first item, be able to get each subsequent item in order. For example, if the composite key
is composed of 4 subkeys, be able to get the lowest key that matched the first 3 subkeys, then get each next higher key if necessary.
I don't need necessarily to get the full set of key items that match, just the next best one. Maybe,I could initially enter a key that would be lower than any possible real key and get returned the first key better(higher).
Then I could put that returned key in to get the next higher and so on.
Finally, I would also need another dataset, same as above but in descending order. This has to be fast, both on the insert and lookups,so walking a list would not be a solution as the number of items involved could easily exceed 1000 and the activity would be hundreds/thousands per second.
Hope this explanation is clear enough for someone to suggest a solution that would be a good fit.
Thanks in advance.
|
|
|
|
|
The first data structure that comes to my mind for this is a B+ tree with a pooled memory allocator for nodes. Now there isn't one of these sitting around in the standard library. It also may not be the most effective tree data structure for your needs. It is slanted towards moving through consecutive elements once you find your starting point.
What I would try first is the tree based container available in the STL. This is std::set ( std::map if your key was separate from your payload). For your usage, you would provide your own binary predicate implementing less for your objects (with a built-in level of indirection since you are using pointers). I believe that this is generally implemented using a red-black tree and emphasizes effective insertion and deletion of nodes.
Rather than creating a second container for reverse order, just use one and go backward for the reverse order.
You'd have to run some test to see if this would meet your performance requirements.
Any solution will compromise one thing for something else. You may have to experiment to discover what is suitable for your actual balance of activities.
modified on Wednesday, January 27, 2010 1:32 AM
|
|
|
|
|
Thanks for your input I'll look into it and experiment a bit.
|
|
|
|
|
Hi all
I am using TabCtrl and add variable m_ctrl drive from class CMyTabCtrl.
m_cTab.InsertItem(0,"General Setting");
m_cTab.CreateGroupBox("Test",1,0,350,200);
m_cTab.CreateCheckBox(FALSE,"Check1", 2,0, 0, 10, 15);
Now i need to use click event on check box.
Please help me
|
|
|
|
|
Member 6864839 wrote: I am using TabCtrl...
From where? I do not see any such methods here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Maybe you should take a look at the MessageMap of your tabcontrol!?
|
|
|
|
|
Hi
Is there a way of setting the height of vertical scroll bar in a
Combo box?
i.e., even if there's only one item in the Combo, is
it possible to set the height of vertical scroll bar?
What i have seen is, if there's only one item, the vertical scroll bar
is very small or not at all scrolable. I would like to set it a little
longer so that its scrollable.
Thanks
|
|
|
|
|
Is there a way to tie a network connection to a PID (process ID) using Windows Socket functions? I would like to find network connection details associated with a particular process; more specifically in the process, port at which socket is listening and connection state I need to find. Any Windows Socket functions avialable to fetch all these details using VC++?
TIA!
|
|
|
|
|
It's not part of Winsock, but there is a library that can do what you want. Check out the IP Helper Functions (IpHlpApi). There are calls to fetch the active UDP & TCP listens/connections/etc (GetTcpTable & GetUdpTable). These return information that can be passed to GetOwnerModuleFromTcpEntry, GetOwnerModuleFromUdpEntry. Your best bet is to look up these functions on the msdn site.
|
|
|
|
|
Hi,
I'm using CreateTimerQueueTimer to trigger a routine every second. Most of the time it works well, but every once in awhile it won't get triggered for upwards of 20 seconds. What could be causing it and how can I fix it? I run a couple of programs on the same machine using this call and they always stop responding at the same time due to the pause in this function.
Here's the code I'm using
HANDLE m_timerHandle;
DWORD dwTimerPeriod=1000;
HANDLE hTimerQueue = CreateTimerQueue();
BOOL success = ::CreateTimerQueueTimer(&m_timerHandle,hTimerQueue,(WAITORTIMERCALLBACK)TimerRoutine,this,dwTimerPeriod,dwTimerPeriod,WT_EXECUTEDEFAULT);
static SYSTEMTIME now2;
VOID CALLBACK TimerRoutine(PVOID lpParam, BOOLEAN TimerOrWaitFired)
{
int nTime=getSecondsSinceTime(now2);
if(nTime>=2)
wc_logError("timerroutine slow!!! - %d\n",nTime);
bCalcQuoteDelay=true;
bLogStatus=true;
::PostMessage(AfxGetApp()->m_pMainWnd->GetSafeHwnd(), WM_QUEUE_TIMER, NULL,NULL);
GetLocalTime(&now2);
}
Thanks in advance!
Brian
modified on Tuesday, January 26, 2010 2:04 PM
|
|
|
|
|
Given that the documentation specifically states 'These threads are subject to scheduling delays, so the timing can vary depending on what else is happening in the application or the system.', if your need is timing-critical, you may want to find another means of triggering events.
L u n a t i c F r i n g e
|
|
|
|
|
I can create spaces between bitmaps on Toolbar, but how can I create seperators or grouped bitmaps that might look like as if they have seperators between grouped bitmaps?
|
|
|
|
|
It is possible to do it in the resource editor by "dragging" each button image to create the separator, but I find it easier to do it manually in the resource text file :
for example if you have this toolbar:
ITB_STANDARD_TOOLBAR TOOLBAR 18, 16
BEGIN
BUTTON ID_FILE_NEW
BUTTON ID_FILE_OPEN
BUTTON IDM_FILE_SAVE
BUTTON IDM_EDIT_CUT
BUTTON IDM_EDIT_COPY
BUTTON IDM_EDIT_PASTE
END
you can add a SEPARATOR statement where you want to separate between groups:
ITB_STANDARD_TOOLBAR TOOLBAR 18, 16
BEGIN
BUTTON ID_FILE_NEW
BUTTON ID_FILE_OPEN
BUTTON IDM_FILE_SAVE
SEPARATOR
BUTTON IDM_EDIT_CUT
BUTTON IDM_EDIT_COPY
BUTTON IDM_EDIT_PASTE
END
This signature was proudly tested on animals.
|
|
|
|