ATL objects are COM objects. You've got to create an instance of a class to use its functions. In general, you cannot use a member function of your C++ class without creating an instance of that class. It looks like you try to use member functions without creating any variables of that object's type. Volodya Orlenko, orlenko [at] hotmail [dot] com
Volodya Orlenko
Posts
-
DLL Function in VB -
DLL Function in VBOk, I see what you ae trying to do. Please download that example and modify it for your needs. It works. Note that he did not use any COM classes! You could do exactly the same by creating a new dll from scratch. Volodya Orlenko, orlenko [at] hotmail [dot] com
-
DLL Function in VBIf I understand you correctly, you created an ATL Dll, a COM object in it, and now you want to use its methods just as dll functions, without that COM object at all? That will not work. To create a simple dll to be used from VB or C or whatever, you do not need ATL. Use "New", then select "Win32 Dynamic-Link Library" in your Visual C++. Volodya Orlenko, orlenko [at] hotmail [dot] com
-
find and replace (simple VBA)Here's a script that works:
Sub Macro8() Dim fContinue As Boolean fContinue = True Dim Sel As Range Do While fContinue Set Sel = Selection.Range Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = " " .Replacement.Text = " " .Forward = True .Wrap = wdFindAsk .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With fContinue = Selection.Find.Execute(Replace:=wdReplaceOne) Selection.Start = Sel.Start Selection.End = Sel.End Loop End Sub
Volodya Orlenko, orlenko [at] hotmail [dot] com -
DLL Function in VBCan you give a small example of code (C++/ATL and VB) that gives this behavior? I remember having this sort of problem, but I don't remember how I solved it ;) (Though I did solve it, so maybe I'll be able to help :) ) Volodya Orlenko, orlenko [at] hotmail [dot] com
-
.NET expansion?In my high school years in Ukraine (former Soviet Union) we actually used the "algorythmic language" which looked like
Нач Если (a > b) то Вых Иначе Печ "message" Кон
(I'm not sure this cyrillic text is readable for all) Later at university, we had a very old computer (SM 1420) with Russian OS where you could type English commands using Russian alphabet. That was most funny :) Volodya Orlenko, orlenko [at] hotmail [dot] com -
Downturn turnabout?Hi Lucy, I am coming to Canada (Vancouver) in two weeks, and what I see on monster.ca does not look very encouraging. :eek: I wonder how many months I will spend until I find something... Volodya Orlenko, orlenko [at] hotmail [dot] com
-
no more debugging FAQ.Use
realloc
function.
Example:
char * flexBuff; flexBuff = (char *)malloc(1); // you wanted 1 element initially flexBuff[0] = 'a'; flexBuff = (char *)realloc((void *)flexBuff, 10); // flexBuff[0] still contains 'a', and you have 9 bytes more allocated
Volodya Orlenko, orlenko [at] hotmail [dot] com -
How can I use FSO instructions in my project??Hi Ahuva, the FileSystemObject object ;) does not have a method named "createfile". Use CreateTextFile instead. Good luck. Volodya Ahuva wrote: Set d = CreateObject("scripting.FileSystemObject") d.createfile ("c:\program files\Ahuva\testing.txt") Volodya Orlenko, orlenko [at] hotmail [dot] com
-
Problem registering a dll in Win 95Thanks a lot. I'll experiment with that tonight. Volodya Orlenko, orlenko [at] hotmail [dot] com
-
Problem registering a dll in Win 95Hello all, I am experiencing a problem with one of the dlls in my project. It's a COM dll (written in VC++, compiled under Win2000 as MinDependency) that uses winsock and wininet, and when I try to regsvr32 it under Windows 95, it gives a "LoadLibrary failed (error 485)" message. All other dlls register properly. Windows 98, NT, 2000 have no such problem. Here's what is specified in its Object/Library modules list: "wininet.lib Ws2_32.lib" The system with problems has IE5 installed, so I don't think it's wininet that causes problems. So, does anyone know how to solve it in the best way? Help is greatly appreciated. Volodya Orlenko, orlenko [at] hotmail [dot] com