|
Soory i have solved my problem
the class work in this way
first create the user from CNetUser class
then
from CNetLocalGroup add the group to above created user.
thanks any way
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
When I create a vector and its iterator of GraphicsPath class of GDI+ object as shown in the following, it produces a compilation error. What can be the reason for this error and How can it be fixed ?
std::vector<graphicspath> m_Paths;
or
std::vector<graphicspath>::iterator pathIter;
Compilation error
Compiling...
ImageMarkerView.cpp
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\include\vector(810) : error C2248: 'Gdiplus::GraphicsPath::GraphicsPath' : cannot access protected member declared in class 'Gdiplus::GraphicsPath'
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusPath.h(862) : see declaration of 'Gdiplus::GraphicsPath::GraphicsPath'
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusPath.h(18) : see declaration of 'Gdiplus::GraphicsPath'
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\include\vector(809) : while compiling class-template member function 'void std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::size_type,const _Ty &)'
with
[
_Ty=Gdiplus::GraphicsPath
]
e:\Work\Cpp\ImageMarker\ImageMarkerView.h(75) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
with
[
_Ty=Gdiplus::GraphicsPath
]
Build log was saved at "file://e:\Work\Cpp\ImageMarker\Debug\BuildLog.htm"
ImageMarker - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
|
|
|
|
|
Dear Friends,
I want to create System DSN programatically. How can i do so ??
Imtiaz
|
|
|
|
|
Create The following Regsitry Key
"SOFTWARE\ODBC\ODBC.INI\MyDSN" in the HKEY_LOCAL_MACHINE
Then add the following string values "Database", "Description","Driver", "LastUser", "Server" and set their values
Last add the name of your DSN to the HKEY_LOCAL_MACHINE "SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources" Key as a string
Functions you need are
RegCreateKey
RegSetValueEx
RegCloseKey
cheers
Raz
It is Illogical to define an inventor by his invention
|
|
|
|
|
See the API SQLConfigDataSource()
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
HI how r u ?
Hoping u r looking like an overloaded opertater.
n ur time is static.
but ur Friend is accessing ur privates. is it.
allocate him/her his place....
not xposing every thing to public..
i think u got my points..
is it ..
or noo..
if not ten optizie r copilers ..
ok
zahid ash
N.D. Technologies
zahid_ash@yahoo.com
|
|
|
|
|
do u know? help me plz, thx.
|
|
|
|
|
Look for WM_POWERBROADCAST
and return BROADCAST_QUERY_DENY
<br />
case WM_POWERBROADCAST:<br />
MessageBox (hWnd, "Colsing Why, We've just met ","System CLosing??",0);<br />
return BROADCAST_QUERY_DENY;<br />
Cheers
It is Illogical to define an inventor by his invention
|
|
|
|
|
I would like to encyrpt the contents of my program before I write them to a file. How do I go about encypting the data before I write it to a file, (at the minute I am using serialization). One limitation is that I don't want to serialize the data to a temporary file and then encrypt the file as if the unencrypted file still exists then the data is not secure.
Could someone please just get me started, as I am not sure where to look as many encryption tutorials on this site encrypt and decrypt a file that already exists, I want to encrypt data in memory and write it to a file encrypted, then read the encrypted data back into the program's memory.
Thanks a lot
|
|
|
|
|
>> then the data is not secure.
secure from what? Depending on the definition of "secure" it can be almost impossible to accomplish.
>> many encryption tutorials on this site encrypt and decrypt a
>> file that already exists
Ok but at least one of them encrypts the data in memory and then writes it to the file. So that would show you how to do it yes?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
If it's sufficient to just encrypt plain text data, you could encrypt your CString s before writing them out and after reading them in.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Start by reading Applied Cryptography. Otherwise you will miss something subtile about encryption and get no benifit.
|
|
|
|
|
Hi Dear..
Do You Know How to insert Combo & other control in DataGrid...
I"m using vc++6..
Thanks...
---Sumit Kapoor---
|
|
|
|
|
I have a MonthCalCtrl control in a dialog box. I want to set the daystates for the Month Cal Ctrl, the thing is I have a CArray of COleDateTime objects, and I'm not sure how to best set the daystates. Should I respond to the MCN_GETDAYSTATE message, and just update the visible months, or is there a way to set all of the daystates (visible or not) in the CDialog::OnInitDialog() function?
Any suggestions welcome,
Thanks
|
|
|
|
|
>> I'm not sure how to best set the daystates.
That would be dependant on the use model for your application.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
is there any way to draw in CRichEditView? OnDraw() is not called either by framework nor after a call to Invalidate(). any ideas? thanks in advance.
|
|
|
|
|
Hi!
I currently write an application as a server that translate user uploaded office files into html or pdf. I write it in VB now, but I am also a VC coder.
My trouble is office will pop up dialog and wait for user to response sometimes. I trace the problems and do some prepare to make it not pop up. But I think I can't trace all the reasons to make office pop up. Is there any solution to make office work without asking question? I can accept it dont process on some file, but can't accept it stop working and have to press a button by human.
If there isn't such a solution. I think I have to use another "police" server that kill the application and recreate a new process when the application seems blocked and don't work for a long time.
I really wanna an elegant solution. Can any guru give me some suggestion?
|
|
|
|
|
hi all
if you want to hear my problem briefly
it's that i have created a rich edit box in my
dialog and now i cant put text in it properly
is there a function or i should do it by first taking its DC(device context) .
lots of thanks you kind professional
|
|
|
|
|
Add Vairable of CString type with ur rich edit Box by Class Wizard ..
then assiagn ur trext to its CString variable.
then use
UpdateData(FALSE);
i.e.
m_strVariable = " My Text ";
UpdateData(FALSE);
i hope u will get it n it works
thanx
zahid
|
|
|
|
|
ramtinbahal wrote:
i have created a rich edit box in my
dialog and now i cant put text in it properly
is there a function
Create a CRichEditCtrl member variable and then use SetWindowText() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
thanks for your simple response
but now i'm trying to put text in a rich edit control
while accessing the way i put it there .
i mean how i can put text at a line number and a column i wish (example line 5 column 20 ) ?
setwindowtext() is good for one line rich edit
but i have a multiline rich edit box .so i need a way to write text in it
how i wish .
Strangely there is no function in rich edit class to do it (except SetWindowText() ) or maybe i dont know because i searched MSDN entirely but nothing found .
lots of thanks
|
|
|
|
|
SetWindowText() can be used, but you'll either need to call GetWindowText() , or have the text stored in a separate buffer. For example:
CString strBuffer1;
...
strBuffer1 = strBuffer1 + "\r\n" + ...
m_edit.SetWindowText(strBuffer1); The other way would look like:
CString strBuffer2;
m_edit.GetWindowText(strBuffer1);
strBuffer2 = strBuffer1 + "\r\n" + ...
m_edit.SetWindowText(strBuffer2); You can also use ReplaceSel() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
realy thank you david
it did work .
i was going to be realy disappoited with microsoft .
but you saved them
good luck
|
|
|
|
|
realy thank you david
it did work .
i was going to be realy disappoited with microsoft .
but you saved them
good luck
|
|
|
|
|
I have hyperlink that is more than 50 character
when I specify it as the following to launch the outlook
CString str_content = "click here";
ShellExecute( NULL, "Open", "mailto:my@domain.com?Body=" + str_content, NULL, NULL, SW_SHOWNORMAL );
If i have shorter str_content and I launch, I can see hyperlink in
my outlook. However, if str_content becomes longer just text displayed in outlook content with all hyperlink code.
How can i get the hyperlink in outlook when i have longer string.
777
|
|
|
|