XlTable Structure has 255 as the max length for a string block
so if I want to send a unicode text I'm restricted with 127 max
and the worst is that when an application like Excel expect to have
- lets say 200 - chars each block then we can't send unicode text
so any Idea how can I send unicode using XlTable
-if any one knows other format except tdtString that do the job -
As you can also see I have dynamically allocated them as well. The reason for doing this is because I dont want to make sure that the dialog boxes dont hog a lot of memory. The problem I am receiving is that once this dialog box is called that contains the multiple tabs, I get an error once I close, reopen and close once again this specific dialog box. The error is as follows:
I looked on MSDN but it doesnt offer any helpful advice on how I fix this error. I know its an issue with dynamically allocating those variables because I did not receive this error when the variables were just static and not dynamically allocated. My questions basically are:
1) Is it possible to dynamically allocate static variables, and allow the variables to dynamically allocated and destroyed once a routine has been completed? If so how?
2) Is making the hwnd variables dynamically allocated worth it? Does it actually save a considerable amount of memory?
lol thanks for the fix, but I ran into a BIG problem. When I ran the program and closed the dialog box, I got my 8th (i think?) ever BSoD and some very weird exorcist sounds coming from my speakers. So dont think that worked out too well. Any other ides you may have?
I have been puzzelled in a problem,
What have to do is, that I have some file names ( like 000001.doc, programming.doc, etc.) now I have to find out the files that are in hexadecimal (leaving file extension).
2) Loop through each file. For every File name, loop through its name until the extension is reached and check to see if each character is either [0-9] or [A-F]. If its not, just do continue; and start back at the beginning of the loop again. Use this website to utilize the ANSI character set.
Remember, the letters can be either lower case or uppercase and have different ANSI codes.
3) Record the file names in an array. (Create a dynamic allocated array for big file names).
char name = "......." ; // the file's name without extension
char * p;
strtoul(name, &p, 16);
if( *p == 0)
// the name is like a hexadecimal number, or is empty
// the name is not like a hexadecimal number
I'm trying to in corporate a \n in a CString variable I thought that you could use the format function to do that. Here's the code:
look.Format("Original text: <%s>\n"
"CompareNoCase says they differ!\n"
"Lowered again: <%s>\n\n"
"Conclusion: CompareNoCase doesn't work correctly!");
But then I keep getting the following errors:
c:\documents and settings\....cpp(102) : error C2664: 'void ATL::CStringT<basetype,stringtraits>::Format(const wchar_t *,...)' : cannot convert parameter 1 from 'const char ' to 'const wchar_t *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\kmil\Desktop\tst\LEDs_try2\LEDs_try2\Debug\BuildLog.htm"
LEDs_try2 - 1 error(s), 0 warning(s)
I've tried that... but then I get an "Unhandled exception at 0x102212de (msvcr80d.dll) in LEDs_try2.exe: 0xC0000005: Access violation reading location 0x59199e91..." error. And when you go to debug it opens up the file output.c and points to line 1627 which is:
while (i-- && *pwch)
OK... I am working with an IDispatch-based interface that needs to be completely automation capable (i.e. it uses the Typelib Marshaller - no custom marshalling).
o I can pass structures over an IDispatch-based interface as the structures consist solely of automation-capable types
o I can pass arrays of automation-capable types over IDispatch-based interfaces using SAFEARRAY (possibly wrapped within a VARIANT)
(For now, ignore the fact that some clients, like VBScript, may be unable to handle these kinds of parameters.)
However, I cannot seem to find information telling me that both are possible at the same time. IOW, I want to pass an array of structures across an IDispatch-based interface. The only information I can find regarding passing arrays of structures indicates that I will have to serialize the data to a byte stream and then send the raw bytes over the wire wrapped in a SAFEARRAY of VT_I1 types.
While I am sure I can make that work, and can provide clients with information on how to decode the structures, this feels kinda 16-bit-ish to me, and not just a little quick-n-dirty.
So, does anyone know if it is possible to pass arrays of structures over IDispatch-based interfaces, or do I have to do the byte-stream route? If so, please point me to the relevant documentation.
Adva[Thanks]nce! (Cheesy, I know... )
-=- JamesIf you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
plz tel me how to change the color of text in a edit control or static control and also tem how to change color of edit control plz tem me some example (code to understabd is easy) plz.....................