|
oops..
My array of strings is empty.. I used
m_arr.Add(m_strPhoneNum);
to add phone numbers in the array.
I think the syntax is wrong..
pallavi.
|
|
|
|
|
mpallavi wrote:
m_arr.Add(m_strPhoneNum);
what is m_arr , and how are you iterating throught it when writing to the file?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
mpallavi wrote:
to add phone numbers in the array.
I think the syntax is wrong..
Hi Pal,
First Add all the member of ComboBox to CStringArray or directly Enumerate them, When you are entering data in temporary File.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi all
can anybody help me out with a sample,that can store some GDI calls and later play it back, i came to know that metafile device context can be used for this purpose
thanks for your help
regads
pradish
|
|
|
|
|
|
2 Jose Lamas Rios
thanks for ansering my mail,but i need a sample that makes use of Win32 GDI API's only. no MFC.
regards
pradish
|
|
|
|
|
pradish wrote:
thanks for ansering my mail,but i need a sample that makes use of Win32 GDI API's only. no MFC.
That was the first link. It's about using metafiles with Win32 APIs (No MFC) and includes a downloadable sample...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hi does anyone know how to insert commas in array?
example: 2,3
3,3
4,2
I need to show these commas when I execute the program.
Pls advice.
|
|
|
|
|
for (int i = 0; i < arraySize-1; ++i)
{
cout << array[i] << ", ";
}
cout << array[arraySize-1];
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
for (int i = 0; i < arraySize-1; ++i)
{
cout << array[i] << ", ";
}
cout << array[arraySize-1];
Right, but don't forget to test for the empty array condition. The for loop checks it itself, but the last sentence may attempt to access array[-1] .
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Okay, I have a dialog, made with the resource editor, im using it as my main window, and im using Pure Win32, no MFC!, and i want this dialog to be positioned by the system like a normal window would be if you had created the window with CreateWindow() and specified CW_USEDEFUALT for the X paramater, but i dont know how to get my window to do this.
and please, if you dont know exactly what i am asking then dont bother trying to answer
|
|
|
|
|
Position the dialog to your liking in response to the WM_INITDIALOG message. Use:
SetWindowPos(..., CW_USEDEFAULT, CW_USEDEFAULT, ...); for the x and y parameters.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
tried this, it positions the window off screen
|
|
|
|
|
Does MoveWindow() produce the same result? I'm not sure if either support CW_USEDEFAULT .
You might want to explain this requirement further. Perhaps there's a better alternative.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi,
I am trying to use the Seek method in an ADO recordset object. It works fine if the index is only one field. For an index with multple fields, say two strings, I cannot seem to make it work properly.
MSDN says that the first argument is a Variant array.
example code:
_variant_t varKeys[2];
varKeys[0] = "value1";
varKeys[1] = "value2";
m_pRecordset->Seek( varKeys, adSeekFirstEQ );
What happens is that only the first value seems to taken into account.
Any ideas ?
note: I am using an MDB (Access) database. Opening using Jet4 conenct string.
thanks,
Louis.
|
|
|
|
|
ldaoust wrote:
MSDN says that the first argument is a Variant array.
It seems like rather than an array of variants, what you need is a single variant containing an array of values.
Check this article[^].
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Great, thanks. Got it to work based on that article.
thanks again.
--
Louis.
|
|
|
|
|
If I have a class made in my MFC application I am making I get a very fun bug. This also happens if i call delete on an object I have allocated and of course even though a memory leak when a homemade class goes out of scope.
So tell me how can i make a class or use delete on objects or eve my own classes? Here are my linker errors:
Prog error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpmtd.lib(newop.obj)
Prog error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
Prog fatal error LNK1169: one or more multiply defined symbols found
Isn't that great? So i narrowed it down to creating a class and it going out of scope as well as the call of a destructor or even just deleting a simple character array.
|
|
|
|
|
I suspect the problem is your sytnax when you call new and delete. It obviously thinks you're trying to define these operators, or at least that they are multiply defined elsewhere.
Try creating a brand new project, and adding a char * with new and delete in your main. If that doesn't work, your compiler setup is screwed. OTherwise, your project is somehow screwed.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
how can I get the registered window class name from an HWND?
No MFC allowed.
Thanks in advance!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
GetClassName
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Hey there,
I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as
1. A drop down box
2. Label box
3. Gifs
4. a List View
For some reason 1 and 2 are not visible as having handles when viewed from Spy++.
I need to get the handle to the Label box (2) to retrieve its text. I'm trying to access this from a different program so I have to use handles and cannot use properties withing my application.
Any suggestions!!
Abhishek
|
|
|
|
|
Abhishek Karnik wrote:
For some reason 1 and 2 are not visible as having handles when viewed from Spy++.
Are they obscured by some other control like a groupbox?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hey David,
I'm not sure ..... the ThunderRT6UserControlDC is a child of ThunderRT6PictureBoxDC which contains a number of ThunderRT6UserControlDC's. However I don't think its obscured. If it were it would have shown up in Spy++ ( is assume).
regards
Abhishek
|
|
|
|