|
I have made the change in the rc file. But still it is not displaying.
I am entering ハローすべてのボディをどうすればいいのすべてを管理する。 message in the edit box
but it is showing ???????????????????????????.
On button click of send messagae i am calling a function for encoding into UTF8.
I think this might be an error.
|
|
|
|
|
I have given u the feedback but u have not replied.
|
|
|
|
|
Dhiraj kumar Saini wrote: I have given u the feedback but u have not replied.
So what?! There is a limit to which someone on the internet might try to help you and I believe that you know it too.
As a last measure, you could email me your project and I may give it a try. mfc AT aol DOT in
Please understand that if I choose to look at it, then I may take my own time to analyse it. I am doing this in your interest and do not rely solely on ME to solve your technical problems. You are definitely doing something wrong somewhere and try finding it out to fix it.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
ok Thanks I will try my level best.
|
|
|
|
|
Hello , is there anyway that I can hold an array of structs that have their own arrays other than creating a new class
somewhere in the typedef.h ...
typedef struct mystruct
{
CStringArray aName1;
CStringArray aName2;
CArray <int> aVal1;
CArray <int> aVal2;
}MY_STRUCT;
somewhere in the header of my MyDoc.h...
#include "typedef.h"
CArray<my_struct> m_MyStructs;
somewhere in the header of my MyDoc.cpp...
MY_STRUCT a;
...
m_MyStruct.Add(a);
</my_struct></int></int>
This code returns error that "=" operator is private and can't be accessed!
Thanks
PS-Oh I got that I can'tuse >< around my type specifier because it will be assumed as a tag so I use [] instead
somewhere in the typedef.h ...
typedef struct mystruct
{
CStringArray aName1;
CStringArray aName2;
CArray [int] aVal1;
CArray [int] aVal2;
}MY_STRUCT;
|
|
|
|
|
Could you report the exact (complete) error message?
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]
|
|
|
|
|
Hi , Sure,
Error 36 error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcoll.h 593
Error 37 error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h 272
these errors do not appear when I remove
m_Mystruct.Add(a)
As I noted in the stuct definition I have both CArray<int> and CStringArray
thanks
|
|
|
|
|
Could you also reformat your code properly? For instance CArray is a template container, but I don't see any argument between < > .
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]
|
|
|
|
|
done
|
|
|
|
|
Probably Cédric's guess [^] is right.
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 guess it is because CArray and CStringArray don't have a copy constructor. So, the compiler will assign a default copy constructor and assignment operator to your structure which 'uses' the copy ctor and assignment operator of the CArray and CStringArray, which are private. One way to fix this is to provide your own copy constructor and assignment operators for the structure. In those, copy the contents of the arrays using a loop (instead of a direct assignment).
|
|
|
|
|
Hi! I guess you are right! you mean I have to derive my own CArray class? isn't another way I mean another array class that can do the trick!
thanks
|
|
|
|
|
Electronic75 wrote: you mean I have to derive my own CArray class
No, I mean you have to provide a =operator and a copy constructor for your structure. Inside those, instead of simply assigning the arrays, like this:
mystruct::myStruct(const mystruct& copy)
{
array1 = copy.array1;
}
you will need to copy the content of the array by iterating over it.
Electronic75 wrote: isn't another way I mean another array class that can do the trick!
std::string or std::list maybe ? But you have to be carefull of what is inside those arrays. If you store pointers, you will have a copy of the original pointer pointing at the same memory location, so you should only delete one of them (so, it's a bit dangerous).
|
|
|
|
|
Thanks a lot Cedric, It worked pretty much OK
|
|
|
|
|
|
What do you need to do ? In fact you are looking at it the wrong way: don't take into account that you have a USB port in between, this will be 'hidden' for you. In fact you need to communicate with the driver of the PocketPC (generally through ActiveSync). What are you trying to achieve exaclty ? Take a look at RAPI[^], this is what is already available.
|
|
|
|
|
I want to transfer some data to the WinCE using USB.
I have a USB cable's one end connected to my PC running a VC++6.0 Application and to the WinCE.
Priya Sundar
|
|
|
|
|
Did you read my previous message ?
Because it looks like you didn't...
|
|
|
|
|
i need to create a .MSG file on my local disk the saveas function of _Mailitem of outlook programming fails.
Also i need to create .EML files that can take rtf data as an input or message body.
these both i have to create in vc++ 6.0 not in .net application.
Thanks,
Regards,
Ravi
|
|
|
|
|
Hello everyone,
I am developing a C++ COM client (COM consumer) using #import statement, even if it works fine, I still find one issue when reading MSDN document about #import.
http://msdn.microsoft.com/en-us/library/8etzzkb6(VS.80).aspx
In the document, it mentioned two header files will be generated -- TLI and TLH files. But in my client project directory, there is only one tlh file. I am using VS 2008. My questions is why the tli file is missing, if not missing, where is it?
thanks in advance,
George
|
|
|
|
|
probably you are importing tlb with no_implementation attribute.
Regards,
Sandip.
|
|
|
|
|
Thanks Sandip,
Here is my IDL file. I do not explicitly assign the no_implementation attribute. Any ideas?
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
namespace TestATL1Lib {
struct __declspec(uuid("1f97c59f-609d-4f86-ba31-db9fd88bbbd4"))
__TestATL1Lib;
struct bbbb;
struct __declspec(uuid("2bd6b985-3287-492f-a781-decdd03ca0d0"))
Ibbbb;
struct cccc;
struct __declspec(uuid("1a3a642c-50c0-4c30-9807-3bf4727a1157"))
Icccc;
_COM_SMARTPTR_TYPEDEF(Ibbbb, __uuidof(Ibbbb));
_COM_SMARTPTR_TYPEDEF(Icccc, __uuidof(Icccc));
struct __declspec(uuid("9b0304a2-a49a-4a3b-8d40-a05c4d7c009b"))
bbbb;
struct __declspec(uuid("2bd6b985-3287-492f-a781-decdd03ca0d0"))
Ibbbb : IDispatch
{};
struct __declspec(uuid("f68bfdc9-ebe3-424e-80ef-ed6465087c60"))
cccc;
struct __declspec(uuid("1a3a642c-50c0-4c30-9807-3bf4727a1157"))
Icccc : IDispatch
{};
}
#pragma pack(pop)
regards,
George
|
|
|
|
|
i do not have much experience with COM, but how does your TLH file look like
because TLI file contains implementation for compiler generated wrapper functions specified in .tlh file.
Regards,
Sandip.
|
|
|
|
|
Thanks Sandip,
Here is what the tlh file looks like. Now with my posted TLH and TLI files, do you have any ideas why there is no tli file generated?
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
namespace TestATL1Lib {
struct __declspec(uuid("1f97c59f-609d-4f86-ba31-db9fd88bbbd4"))
__TestATL1Lib;
struct bbbb;
struct __declspec(uuid("2bd6b985-3287-492f-a781-decdd03ca0d0"))
Ibbbb;
struct cccc;
struct __declspec(uuid("1a3a642c-50c0-4c30-9807-3bf4727a1157"))
Icccc;
_COM_SMARTPTR_TYPEDEF(Ibbbb, __uuidof(Ibbbb));
_COM_SMARTPTR_TYPEDEF(Icccc, __uuidof(Icccc));
struct __declspec(uuid("9b0304a2-a49a-4a3b-8d40-a05c4d7c009b"))
bbbb;
struct __declspec(uuid("2bd6b985-3287-492f-a781-decdd03ca0d0"))
Ibbbb : IDispatch
{};
struct __declspec(uuid("f68bfdc9-ebe3-424e-80ef-ed6465087c60"))
cccc;
struct __declspec(uuid("1a3a642c-50c0-4c30-9807-3bf4727a1157"))
Icccc : IDispatch
{};
}
#pragma pack(pop)
regards,
George
|
|
|
|
|
I cant see any function in TLH so i think compiler is not generating corresponding TLI.
I tried creating test.tlb without any contents and it gave me only .TLH
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
namespace TESTLib {
}
#pragma pack(pop)
</comdef.h>
Does it make sense.
Regards,
Sandip.
modified on Thursday, September 11, 2008 4:42 AM
|
|
|
|