|
COM targets this kind of problem (among many others): only pointers to methods are returned and object lifetime is controlled by reference counting.
|
|
|
|
|
Hi,
I am using CComboBox as dropdown menu. But how can I get edited item (string)?
GetLBText(0, str) always give me original string instead of edited one.
Thanks for your help in advance.
Nagaraju
|
|
|
|
|
if you want to access to editctrl on combobox you can use of GetComboBoxInfo
|
|
|
|
|
Hi,
Try:
int iIndex = GetCurSel();
GetLBText( iIndex, str );
You wrote: edited text - but the editing is already fiished ?
-----------
Mila
|
|
|
|
|
Are you looking for GetWindowText() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi
kindely help me in my project
#sanroop#
|
|
|
|
|
|
Sanroop wrote:
Hi
kindely help me in my project
you have search each string for that.... you can use strtod function! it return failure string if it alpha numeric
"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
|
|
|
|
|
For each character in string use, isalpha() or isdigit() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I have unsigned char * array which I get from Safearray.This is actually of 20 bytes.I should convert it to float array of size 5.
How can I do that?
When I do
lpData=new unsigned char[lngLogoSize+1];
for(long lBytesCopied=lb,i=0;lBytesCopied<lnglogosize;lbytescopied++,i++)
{
hr= safearraygetelement(varchunk.parray,&lbytescopied,(void="" *)&lpdata[i]);
}
lpdata[lnglogosize]="0;
lngOffSet" =="" 0;=""
="" checking="" for="" the="" value="" in="" first="" 4bytes="" of="" 20="" bytes="" i="" get=""
char="" arr[4];
int="" k;
for(k="0;k<4;k++)
{
arr[k]" =(char)lpdata[k];
}
arr[k]="\0" ;
float="" fltarr1="atof(arr);" iam="" getting="" (which="" is="" incorrect)
any="" suggestions="" please?
thanks=""
<div="" class="ForumSig">Today is a gift, that's why it is called the present.
|
|
|
|
|
Are you sure the source bytes are ASCII chars to be converted to a float value?
Or does the 20 byte array contain 5 floats, 4 bytes each?
|
|
|
|
|
Hi all!
I have a problem of copying and pasting on my SDI application. My view is derived from CFormView. I created some edit controls,... on it but when i run my application, i can't use Ctrl+C or Ctrl+V to copy or paste . Who can help me
Thank in advance!
Rgs!
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all:
Can I release a program without bring Msvcr80d.dll along? In other words can a program release without Msvcr80d.dll? What it is for exactly? It seems this dll is only used when you want to debug.
|
|
|
|
|
MSVCR80d.dll can not be redistributed. What you have to do is build the release version of your app and distribute it with MSVCR80.dll
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
PJ Arends wrote: MSVCR80d.dll can not be redistributed.
What do you mean by "REdistributed"?
|
|
|
|
|
Microsoft has already distributed the file with your development tools, that is how you got it. If you were to send it out you would be redistributing it.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
OK, thanks, now I understood what "Redistribute" means.
Please allow me to ask another question which is not about tech, but pure matter about language grammar.
you wrote: If you were to send it out
What "were to" in the above sentence means, is it a presumption like "If I were you"? Sorry, if this seems irrelevant.
|
|
|
|
|
Yes, it is a presumption. The word 'if' is what makes it a presumption.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Sorry for posting so much in a row I am just having severe problems that don't seem right. Anyway for the next I have very similar code. In the following code i get error C2440: '=' : cannot convert from 'Vector' to 'float'. I thought that the [] overload should return a float so why is it trying to convert it from a vector to a float?
Thanks for any help givin.
int main
{
Vector* Test1 = new Vector(3);
float Test10(0);
Test10 = Test1[0];
}
Base class Array header
float& operator[](const int RHS);
const float& operator[](const int RHS) const;
|
|
|
|
|
Test1 is a pointer to a Vector . Test1[0] is the same as *Test1 , which returns a Vector . What you want is (*Test1)[0] to call the operator[] method of the Vector object.
|
|
|
|
|
I have some problems with overloading + operator I think??? What I have is a static library with 2 classes array is the base class and just has the array basic functions and the overloaded[]. The Vector class has the arithmatic functions. with the following code i get the error cannot add 2 pointers but shouldn't the overload take care of that?
here is what i have
int Main
{
Vector* Test1 = new Vector(3);
Vector* Test3(NULL);
Test3 = Test1 + Test1;
}
Vector header
friend Vector& operator+(const Vector& LHS, const Vector& RHS);
|
|
|
|
|
What are you trying to do? Adding two pointers together isn't going to yield anything useful
except a bad pointer.
Mark
|
|
|
|
|
I am trying to use the overload to do vector addition. That code should call my overload right?
|
|
|
|
|
Your "+" operator overload takes two Vector references and you are passing it two Vector
pointers.
|
|
|
|