|
Leovinus wrote:
I'm trying to programatically add a file to an existing zip file, but can only overwrite the first file that is already in the archive
Is CZipArchive::AddNewFile has any problem?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
There is no CZipArchive in the older version.
|
|
|
|
|
Hi,
I have 3 dialogs and these are already made one.Now i have the plan to have these 3 dialogs in same place like property sheet.So, I insert one CPropertySheet class and i add this 3 dialogs in that by using AddPage.
But error is coming that AddPage cannot convert CGraphconfig in to CPropertySheet.
Why?Whats the reason?
|
|
|
|
|
Are you sure that these dialogs are derived from CPropertyPage?
- NS -
|
|
|
|
|
void CConnect::OnGroupTrend()
{
CConfigurator oConfig("Configurator");
CGraphviewConfig oGrphconf;
CGrpTrnConf oGrpConfig;
oConfig.AddPage(&oGrphconf);
oConfig.AddPage(&oGrpConfig);
oConfig.DoModal();
}
This is my PropertySheet function.The two dialogs are derived from PropertyPage.(i.e) i replaced CDialog in the code in to CPropertyPage.
Configurator class is derived from CPropertySheet.
Assertion error occurs in DoModal() line.I dont why yhe error occurs.
|
|
|
|
|
Tell me the details of assertion message.
- NS -
|
|
|
|
|
Today's goal is to guess the assertion's location simply by looking at irrelevent code snippets.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
If all you changed was the derivation from CDialog to CPropertyPage, you didn't quite make it. Create a new class using the Wizard and derive that class from CPropertyPage. Then make sure your base class calls for your classes match the generated ones.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hi all,
I'm trying to restore a window state to SW_RESTORE using the method ShowWindow. But as easy as this sounds I'm trying it in a dll. And for some reason i'm not getting it right.
I'm trying the following:
HANDLE ps = OpenProcess(SYNCHRONIZE|PROCESS_ALL_ACCESS,FALSE,pe_sen.th32ProcessID);
SetForegroundWindow(ps);
ShowWindow(hWnd, SW_RESTORE);
But one thing I must add is that I'm not creating a process, I'm just checking if a certain process is already running on the PC.
So I have seached all over the web and can't get anything that can help me, so if anyone has some info of a site or .... anything. It would make my day.
Thanx in Advance
Regards
Programm3r
|
|
|
|
|
You are passing a process handle into a function that expects a window handle. A process can have more than one window.
http://msdn.microsoft.com/msdnmag/issues/02/07/CQA/[^]
SetForegroundWindow() on Windows XP will just cause the app to flash in the taskbar if the window doesn't belong to the calling thread. You can use AttachThreadInput to get around this.
|
|
|
|
|
Thanx, I'll check it out....
|
|
|
|
|
In class declaration problem's ans. you have written this code. plz explain it what it does.
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
|
|
|
|
|
Nobody writes this code. It's the class wizard that inserts this code (for its marking) for adding the member functions and data members that belong to this class and so on.
What do you don't understand?
If its those brackets
//{{ these fancy brackets are used for denotation by the class wizard where to add functions and variables.
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
|
Nirmal,
you'll have to conform to the forum rules if you want people to still help you.
stop creating a new thread if the topic stays the same. continue in the same discussion, and be patient. people will see your request and answer it if some knows the answer.
for what you ask, this code is automatically generated by class wizzard (so no one wrote it), but this code actually defines the CAboutDlg class (which is the Dialog box of your "About").
what don't you understand in this ?
//{{ and //}} are comments, so don't take them in account
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
SORRY TO BE CURIOUS.
And thanks for your suggestions, now i have cleared my doubs.
Thanks a lot
|
|
|
|
|
Hi,
I created MFC application (dialog based) and it is meant for loading bitmaps through
the edit box(bitmap paths) and custom control for showing flipping action among bitmaps.
but unfortunately my dialog which was poing up suddenly got stopped poping up while
i run the application and select from menu bar that dialog.The dialog has it's own header and souce where implementation is done but unless it never pops up, i cannot test
the flipping functionality.
Can anyone help me immediately -quite urgent?
|
|
|
|
|
Set breakpoints in your code and step through to see which part is causing the error.
|
|
|
|
|
Hi,
I want to store a list of strings. Something like this:
Name1 a1
Name1 a2
Name1 a3
Name2 b1
Name2 b2
For just a list of Name’ i.e. Name1, Name2 ‘I can use CStringList. But how do I store the ‘Name’ and its corresponding data in a single list.
I cannot use an array[][] because I do not know the exact size to allocte it at runtime.
Please can you tell me how to do it.
Maybe I can store the whole line as a string i.e. Name1 a1” “ and then use sscanf to get the separate strings?? Would that be correct?
Fortitudine Vincimus!
|
|
|
|
|
struct MyData
{
CString strName;
CString strData;
};
CArray<MyData> data;
CList<MyData> data;
|
|
|
|
|
Thank you.
Fortitudine Vincimus!
|
|
|
|
|
u can also use mulimap which will help you in faster retreival of data .
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
Hi. I am a newbie.
In C, I managed to read a file which consists of a single string.
How do I pass this string to VB via an OCX?
I was thinking of creating a safearray to do it but I am not to sure how to safearray a string. I have only managed to do it for numbers.
Thanks in advance!
|
|
|
|
|
U must convert c string to BSTR, then pass it to VB,
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
Bratis wrote: I was thinking of creating a safearray to do it but I am not to sure how to safearray a string. I have only managed to do it for numbers.
Is Creating SAFEARRAY of type VT_BSTR has any problem ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|