|
I want to manage user accouts on an active directory(2000 server) through Internet.How can I do it with VC 6?
|
|
|
|
|
why using VC 6?
use the management console!
Don't try it, just do it!
|
|
|
|
|
because I want to make a program for someone who don't know much about it,and the program would have friendly interface and be easy to operate remotely.Unfortunately I know little about the interface of active directory.So I need some help.
|
|
|
|
|
Hi.
I have started a MDI project. I have a view derived from CFormView.
In that form there are a few textbox and buttons. I want to call another view, (derived from CFormView), when the user press a button.
In fact, there is a button "Next" and a button "Previous", when the user press "Next" I want to show other form, and so on.
How can I do that?.
How can I managed multiples views, (derived from CFormView, CScrollView, etc), so I can show it, (or hide it), from differents events?.
In all these views the user fills some fields to finally update or query a SQL Database, but I dont have problems with that.
Thank you and regards from Argentina.
Demian.
|
|
|
|
|
|
I've been trying for ages now to design a simple chat client based on dialogs and Csocket with MFC, which allows clients to send simple text messages to a server. I've read most of the articles here, but no matter what, i still cant seem to get my program to run. I've examined the chatter and chatsrvr examples that come with visual studio, but when i try to design my program along those basics, it still doesnt run/build. can anyone help me out?
|
|
|
|
|
what help do you really expect to ?
about MFC or sockets...??
doing a chat client is not very difficult (even if it can become if you want to apply correctly the IRC protocol...
i wait for your response to give you (or to try to) more details.
TOXCCT >>> GEII power
|
|
|
|
|
i'm sorry, i shouldve replied... i need help mostly with the sockets, and u read my mind, i would actually like to follow up with applying the IRC protocol ... any help/sample code with documentation/comments with mostly the simple chat part that u can give would be GREATLY appreciated... thanks for even replying so far
|
|
|
|
|
for the protocol, search on the net for the RFC1459.
I found a good page about this, but.... in french fortunately, i'm french so i don't have translation problem, but i aggree, that will be hard (very hard) for you ! lol
anyway, you can have a look if you want at this :
http://www.csadmin.net/rfc1459.php
About sockets, i don't knom myself about CSocket, but but you can also have a look at "Beej's Guide to Network Programming", Originally made for Unix/Linux socket programming. Csocket and Linux Sockets are not so far... that can be very interresting to read it (PDF format), but i've lost the address. you'll have to search for it once again
TOXCCT >>> GEII power
|
|
|
|
|
I already have links to the rfc, its programming with the CSocket class that i need the help with...
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_windows_sockets.3a_.sequence_of_operations.asp
if u didnt go through this site then please try.It will give you better idea about sockets
|
|
|
|
|
Thanks alot for the link, but i've done most of my research at MSN. However, i am very happy to say that on further trial&error, i've managed to get the code working... thanks so much for the help thateveryone has given.
|
|
|
|
|
Hello at all,
imagine the following situation:
You have created an auto-signaled event, and multiple Threads are waiting for this event to get signaled. The event in addition gets signaled, and one thread starts its execution which implied the event has gotton nonsignaled. So my question is, when does the event gets again signaled ?
Thanks in advance!
|
|
|
|
|
What made it get signalled originally?
If some process/thread is running and periodically signalling, then presumably it can signal again. If not, something has to happen to kick-start. Would the thread that was started not signal the thread prior to waiting on the event?
Steve S
|
|
|
|
|
|
Greetings...
In VC++ 6 I want to create an activeX that contains another activeX, is this possible?
I have tried subclassing the control but I cant get the thing running?
It works if you subclass from ActiveX's that are listed in the project wizard dropdown (upon wizard project creation, step 2 I think, like BUTTON for example) but does not if you are trying to inherit from a custom activeX!!!
Cheers
|
|
|
|
|
Hi Guys,
I have run into a problem for which I havent found a solution till now.Iam trying to show it here in a perspective in which Iam doing it:
I want to draw a bitmap to the screen
m_deviceContext-is the deviceContext to Which I want to draw my Bitmap.
Its mapping mode is set as MM_TWips.
CDC dcMemory;
dcMemory.CreateCompatibleDC(m_deviceContext);
CBitmap *bitmap=CBitmap::FromHandle(handle);//Handle of BitMap is passed here.
BITMAP bm;
bitmap->GetBitmap(&bm);
CBitmap* pOldBitmap = dcMemory.SelectObject(bitmap);
I draw it as follows:
xCord,-yCord,srBpWidth),srBpHeight are in Logical units.
m_deviceContext->StretchBlt(xCord,-yCord,(srBpWidth),(srBpHeight),&dcMemory,0,0 ,bm.bmWidth,bm.bmHeight,SRCCOPY);
(Figure Attached)
I get the figure but it is drawn from the co-ordinate point "up"(As a mirror Image ).I want it to drawn "Down" from the co-ordinate point or Is there any way to inverse it....
Thanks....
|
|
|
|
|
Solved The Problem...............
|
|
|
|
|
Hi,
I use the function ShellExecute(......) to open a file.
How to find if a file has been already opened?
Thanks,
|
|
|
|
|
hello, i'm doing a project using mfc, vc++... i'd created a dialog as my first window, i decided to create a menu as my second window, however, to link the menu to the dialog is not as easy as what i think...
if i wanna call a second dialog using the first dialong, i may use the .domodal to call it... but if i wanna call a menu, what should i do with it???
help!!!
|
|
|
|
|
I guess it's CMenu::TrackPopupMenu you're looking for, probably with TPM_RETURNCMD flag.
Tomasz Sowinski -- http://www.shooltz.com
no animal was harmed more than once during creation of this post
|
|
|
|
|
If you want the menu options to always be available. Do something like this in your OnInitDialog()
CMenu menu;
menu.LoadMenu(ID_OF_MENU);
SetMenu(menu.m_hMenu);
menu.Detach();// now owned by dialog
DrawMenuBar();
The dialog will destroy the menu automatically when itselef is destroyed
You then just need to write ON_COMMAND() handlers for each item. If you need to enable/disable items, handle the WM_INITMENUPOPUP message and process the individual items there.
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
I'v got a CString string as follows
CString strPacket = "$1234567FFFFFFFF#00
I want to parse the string so that str1 = "1234567" & str2 = "FFFFFFFF"
Any suggestions on how to do this
At the moment I'm using the following, however there must be an easier way of doing this.
m_strRspData = "";
for(i = 1; i < 9; i++){
m_strHex = m_strRspPacket.GetAt(i);
m_strRspData += m_strHex;
}
m_strRspData.MakeUpper();
|
|
|
|
|
Try Tokenizer class at Codeproject.
Robert-Antonio
It's a good luck, if you meet a real fink. Then you get a respect to
normal, mid-honest people."
|
|
|
|
|
Something like:
int x = 0;
while (isdigit(strPacket[x]))
{
str1 += strPacket[x];
x++;
}
str2 = strPacket.Mid(x); However, if you are always breaking between the 8th and 9th characters, just use Left() and Mid() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|