|
I'm writing an MFC app and I want to access, check out, check in, stuff from a SourceSafe database. Could someone give me pointers or links to a description of how this is done? Even better would be sample code
Everything I've ever found about SourceSafe is how to use it in Visual Studio and not actually how to implement interface to it in a program.
Thanks
===================
Eric "ArchV" Fowler
Ritual Entertainment
|
|
|
|
|
Look on the Microsoft website for something called Repository.
|
|
|
|
|
|
Hello,
I am creating a COM DLL which is like the Outlook Object Model. I have an Application Interface/Coclass etc etc. My question is...how can I have two functions that do the same thing but have different calling methods depending on if you are using VB or VC++? Here's an example... if you look at the _Namespace interface in MSOUTL9.olb type library there is a function:
HRESULT GetDefaultFolder([in] OlDefaultFolders FolderType,
[out, retval] MAPIFolder** Folder);
if you then look at the coclass Namespace it has a function:
MAPIFolder* GetDefaultFolder([in] OlDefaultFolders FolderType);
they both have the same id and helpstring but if you use VC++ you have to call the first one, and in VB the second (due to VB not using Interfaces and using coclasses instead) but how can I create a function like that? I can only create one function with that id or else VC++ complains. Any help is GREATLY appreciated.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
I think you are a little confused there is only one method here.
As you said it is defined in the IDL as
<br />
HRESULT GetDefaultFolder([in] OlDefaultFolders FolderType, [out, retval] MAPIFolder** Folder);
However in the coclass it is
MAPIFolder* GetDefaultFolder([in] OlDefaultFolders FolderType);
VB uses it somthing like this
Dim MFolder as MAPIFolder<br />
Set MFolder = GetDefaultFolder(...)
On the other hand in C++ it is used such as
<br />
MAPIFolder* pMFolder;<br />
HRESULT hr = GetDefaultFolder(... ,&pMFolder);<br />
The trick is the [out,retval] in the IDL definition. VB does not return HRESULT like C++ so this says that this parameter will be returned instead. The out part tells C++ that this parameter will be outgoing.
Clear it up for you?
|
|
|
|
|
Very nice clarification. Thank you very much for your response.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
Hey!
In my program, I'm enumerating the processes in Windows and
I want to be able to call DebugActiveProcess on one of them so
I can capture it's OutputDebugStrings(). But calling
DebugActiveProcess() doesn't seem to work, even if I have
the right process ID. I'm working in both Win98 and 2k. If
I call GetLastError(), in 98 I get an "invalid parameter" (#87)
error message. In 2K, I get an "access denied" error message.
What am I missing?
Steve The Plant
|
|
|
|
|
I just figured out what I did wrong. I was trying to attach a
debugger to a process that already had a debugger attached to
it. I was trying to attach it to a program that was run in
debug mode in VC (ie hitting F5 to run it). Of course, since
it already had a debugger I couldn't attach mine.
So now I know.
Steve The Plant
|
|
|
|
|
I have created a Dialog-based app.
In the header-file I defined a variable CStringArray m_filearray;
If I now open a new dialog using DoModal() I want the dialog to be able to access the CStringArray defined in the "main" dialog.
How can I do this?
|
|
|
|
|
Pass a pointer to m_filearray to the new dialog. The new dialog should have a protected member CStringArray* pStringArray that you can set via a setStringArray() method. Be sure to initialize pStringArray to NULL in the dialog's constructor and assert that it's not NULL before you reference it.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Could you please give an example what I have to do exactly?
I have added a protected CStringArray *m_pFileList to the second dialog and initialized it to NULL.
What do I need to do next?
thanks in advance
|
|
|
|
|
Add a method called SetStringArray that takes a pointer to a CStringArray and pass in the address of the array.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hi,
I have a SplitterWnd with two panes. In one I have a CFormView and the other is a CView. I'd like to position the (vertical) splitter bar so that it's equal to the width of the FormView when the splitter is created. I'd also like the positioning to be dynamic, so if I edit the CFormView dialog, making it wider, the splitter will be created in the proper location.
Also, I'd like to know what message is fired before the scrollbars are displayed in the FormView. In certain cases, I'd like to prevent the horizontal scroll bar from appearing by shifting the vertical scrollbar to the right. I do this now by checking the size of the window as it's being resized and then shifting the scrollbar, but it's very sloppy because the scrollbars are displayed before I trap the resize message.
Thanks for any help you can offer.
Tom
|
|
|
|
|
I don't believe there is a message generated when a scroll bar is about to be displayed.
|
|
|
|
|
Any ideas on how to get the size of the dialog template at runtime so I can locate the splitterbar to align with the width of the dialog template?
|
|
|
|
|
Create a static frame the desired size of the dialog and use that as the frame size.
|
|
|
|
|
I am going to distribute my database-based C++ application. But I don't know how to set ODBC DSN when setup. Is there any one can tell me that, or is there any installer support that function?
Thanks,
|
|
|
|
|
If your using Installshield there is a wizard to set ODBC data sources, or you can set it in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
|
|
|
|
|
|
Can anyone help me in my school project?I'm a beginner at microsoft visual c++ any need help in doing a program.I would appreciate it if anyone is willing to help me doing it.Thanks alot!
|
|
|
|
|
Code Project is not a place for make your HomeWork, but We can help you making the Alpha Version, of your Project.
Cheers!!!!
Carlos Antollini.
|
|
|
|
|
What type of help do you need Ramzirex?
Please be specific, and post direct questions.
|
|
|
|
|
You get points for saying up front you are doing homework. You lose points for asking the same question twice instead of taking the advice you were given the first time. Asking if people will help you without saying what you want is pointless - by all means when you have an actual question about the project you are working on, post it and I'm sure we will be glad to help.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hi All!
I'm using Tree Control in my dialog and CTreeCtrl in my class
to handle it. I put in this Tree objects, so you can click on them
and view their attributes. User is allowed to mark both objects and
attributes using checkboxes inside tree (I use the TVS_CHECKBOXES style).
My problem is: when you've marked attribute of any object, and after that
collapse the tree, you can't see: have you any checked attributes inside or not. The best decision, I think, would be use tri-state checkboxes (marked, unmarked, partially-marked). I saw these things in installation programs.
The question is: Is there any way to do it inside Tree control?
Or I need to create my own image list with three bitmaps, attach it to my tree control and handle messages on it?
|
|
|
|
|
I needed to do that, And I used the ame Idea. I use a Bitmap with the three states. I Ask for the state of each child item and I decide the bitmap to use.
Cheers.
Carlos Antollini.
|
|
|
|