|
yeap i know, thats why corrected my mistake
"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
|
|
|
|
|
OK, Finally got it,
I found out that I was processing VK_RETURN on PreTranslateMessage of that form
(Opps )
Thanks anyways.
Best Regards - Yovav Gad
CEO and founder of MicroMighty, Inc.
|
|
|
|
|
Hi,
To pry my way into C++ graphics programming I'm trying to start simple. I'm just trying to get a textbox to increment every time a timer event (tick) occurs. In a nutshell, I'm calling a function which increments a 'public' (form-wide) variable and then trying to read that value into a textbox.
The problem I'm having is that the type is mismatched and I can't seem to get the textbox to accept the value.
The .NET Framework Class Library says you can use this class:
public __gc __sealed class Convert
however, despite their examples which show the use of one argument, it claims that it wants something other than 1 argument (says "does not contain 1 argument").
Not sure how to use this, if indeed that is what I should be using.
Any suggestions would be appreciated.
Thanks,
Jeff
|
|
|
|
|
Can you show your code? From the description you provide it appears that there is a mismatch in the parameters you use for the function call.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
Hi,
Okay this is the simplest expression:
private: System::Void timer1_Tick(System::Object * sender, System::EventArgs * e)
{
timerVal++;
textBox1->Text = timerVal;
}
This didn't work. I tried using the aforementioned class pretty much as shown in the example, and that gave me the message about an incorrect number of arguments.
This is surprisingly hard to find information on.
___
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.
Thanks,
Jeff
|
|
|
|
|
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)
|
|
|
|