|
Jeffrey Webster wrote: Alok:
I noticed that other code category which might be more relevant. I felt the questions there seemed more advanced. I'm not averse to someone moving it if they think this is improperly placed.
No offence, actually this forum is dedicated to unmanaged vc++, very few people gradute to managed vc++ from unmanaged vc++.
So, chances of finding a managed vc++ guy on unmanaged vc++ forum is less compared to managed vc++ forum.So just to help you, I mentioned it would be better if you post your query in appropiate forum.
Regarding moving your post, i don't haev authority to do so.. might be some from CP Staff can do it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi Alok,
I did actually post another question on the Managed C++ board. I'll use this board only if it's specifically a C++ question.
Thanks,
Jeff
|
|
|
|
|
You could try
textBox1->Text = timerVal.ToString();
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
Thanks, that worked.
Jeff
|
|
|
|
|
|
Looks like an assignment and no-one is interested in doing your assignments.Not even yourself.
It's not about fixing your program, you are looking forward for someone to write your complete code.
You should buy a good book and start reading it before the sunset today
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Welcome _AnShUmAn_! [^] (the link is actually to my pesonal page at CP -the list is just below-, due to a permalink bug on the list, sorry for that...)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Amy whinehouse wrote: void displayarray(String thearray[], int size)
{
? i dont no what goes here?
}
Code.
Amy whinehouse wrote: int fillarray(String thearray[], int size)
{
? dont no what goes here?
}
Code.
Amy whinehouse wrote: bool findit(String thearray[], int lastslot, String nametofind)
{
? i need help i dont no what code to put here?
}
Code.
Amy whinehouse wrote: int takeoutdups(String thearray[], int numberfilled, String newarray[])
{
?i dont no what code to put here?
}
Code.
When eventually you'll write the code inside the functions, you'll find it just useless, because main calls no function at all.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Amy whinehouse wrote: I have to write a programthat asks for a persons name...
So have you considered:
string strName;
cout << "Enter your name: ";
cin >> strName;
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I'm on a lookout for a multi platform C++ reporting tool in the lines of CrystalReports, QuickReports, and so... Any ideas?
To hell with circumstances; I create opportunities.
|
|
|
|
|
Hai !
I have an byte array of an image. I donot know whether the image is an .bmp or .jpg or .jp2 image.
I want to convert this byte array into Bitmap byte array i.e I want to convert (.bmp or .jpg or .jp2) image to .bmp image?
Thanks!
|
|
|
|
|
kapardhi wrote: I donot know whether the image is an .bmp or .jpg or .jp2 image.
Maybe you don't know the image format at all. How are we supposed to know it, instead?
You may try to interpretate your image data as RGB (or greyscale) components.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I think your answer was perfect because you got 1 if it was wrong you got 5.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Thank you for balancing, pal.
He continues posting again and again, without recognizing what is the actual hurdle: he know nothing about the content of 'the byte array'.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Sorry for repling lately!
Thankyou!
I will first try to gain knowledge in Images and their formats etc. all the stuff then i will try to code my requirement then i may iask my doubts to you.
Thanks!
|
|
|
|
|
For convert formats you can use of CImage class I dont think you can use of it for jp2 but you can find good article on the codeproject for helpful info about image formats search for CXImage article (of course you dont need to convert bmp to bmp ).
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
I had to modify the .odl file for adding one more method. Any idea why its not coming to the newmethod while debugging..I have checked the MIDl and the tlb is created file with res.
test.odl
dispinterface _programctrl<br />
{<br />
[id(30)] boolean newmethod(BSTR var1,BSTR var2, BSTR var3, BSTR var4, BSTR var5);<br />
}<br />
The method is coming fine when I have tested on the activextest container but the problem is when I invoke the method it is not coming to the program while debugging..I have opted 30 as id random number.id[30]
I have called the method like this
testpgm.cpp
DISP_FUNCTION(testcontrl, "newmethod", newmethod, VT_BOOL, VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR)<br />
<br />
BOOL testpgm::newmethod(LPCTSTR var1,LPCTSTR var2,LPCTSTR var3,LPCTSTR var4,LPCTSTR var5) <br />
{<br />
<br />
return TRUE;<br />
}<br />
<br />
testpgm.h
dispidnewmethod = 30L
Thanks,
Rahul..
SoftwareDeveloper(.NET)
modified on Sunday, April 26, 2009 9:11 AM
|
|
|
|
|
I have resolved the issue finally with the following changes to the code given..
What I found was the DISP_FUNCTION usage couldn't exactly trace the id of the method..Instead when I used DISP_FUNCTION_ID, it started working..I have noticed that the DISP_FUNCTION_ID call having a parameter option to pass dispid of the method as well..Not sure why the DISP_FUNCTION couldn't work but anyhow my issue got resolved with DISP_FUNCTION_ID..
Similarly in the .h file I have changed 30L to just 30. Rest all are same..
<br />
DISP_FUNCTION_ID(testcontrl, "newmethod",dispidnewmethod, newmethod, VT_BOOL, VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR)<br />
<br />
public:<br />
enum{ <br />
dispidnewmethod = 30, ..
Thanks,
SoftwareDeveloper(.NET)
|
|
|
|
|
MFC, STUDIO 2008, MDI
There are into project some global variable created same method
Last ‘m_gsADDRESSHOM’ can’t to create.
extern CString m_gsADDRESSHOM; // set into file stdafx.h
// modeldlg2.cpp : implementation file
#include "stdafx.h"
#include "modeldlg2.h"
CString m_gsADDRESSHOM;
// CMainDlg2 dialog
Using global variable
pEdit_ADDRESS->SetWindowTextW(dlg7.m_gsADDRESSHOM); // error C2039: 'm_gsADDRESSHOM' : is not a member of 'CMainDlg2'
|
|
|
|
|
durban2 wrote: Using global variable
durban2 wrote: dlg7.m_gsADDRESSHOM
It's a global variable - that means it's not a member of dlg7, so don't treat it as if it were.
Do you think you maybe need to read an introductory C++ text[^], to learn these basics?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
durban2 wrote: pEdit_ADDRESS->SetWindowTextW(dlg7.m_gsADDRESSHOM);
try using like this :-
pEdit_ADDRESS->SetWindowTextW(m_gsADDRESSHOM);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
MFC, STUDIO 2008, MDI
Why ignore ( skip ) value from OnInitDialog()
There are modal and modeless windows:
// modeldlg2.h
class CMainDlg2 : public CDialog // modal window
{
public:
virtual BOOL OnInitDialog();
CString m_sPP_modal7;
};
// adderdlg2.h
class CAdderDialog2 : public Cdialog // modeless window
{
public:
virtual BOOL OnInitDialog();
};
// modeldlg2.cpp : implementation file
CMainDlg2::CMainDlg2(CWnd* pParent /*=NULL*/) // standard constructor
: CDialog(CMainDlg2::IDD, pParent)
m_sPP_modal7 = "Paris";
}
BOOL CMainDlg2::OnInitDialog()
{
CDialog::OnInitDialog();
m_sPP_modal7 = "New-York";
return TRUE; // return TRUE unless you set the focus to a control
}
// adderdlg2.cpp : implementation file MODELESS window
BOOL CAdderDialog2::OnInitDialog()
{
CDialog::OnInitDialog();
CMainDlg2 dlg7;
MessageBox(L"dlg7.m_sPP_modal7 = \n" + dlg7.m_sPP_modal7);
Why have been chose value from constructor but not from
the method OnInitDialog() modal window?
}
Result: Paris
Why not New-York ?
How to receive New-York ?
|
|
|
|
|
durban2 wrote: Why not New-York ?
Because the dlg7 member hasn't been created as a window yet, so hasn't received WM_INITDIALOG yet. You may have noticed that you haven't seen that dialog at all?
durban2 wrote: How to receive New-York ?
You need to get a WM_INITDIALOG sent to your dialog. Which means showing it. Which menas that as it's a modal dialog, you need to call dlg7.DoModal() before the MessageBox call.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
durban2 wrote: Why have been chose value from constructor but not from
the method OnInitDialog() modal window?
because, OnInitDialog for dlg7 is not called yet, it only call once Dialog is created!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|