|
Hi,
I'm using this libary to convert PNG's to dibs. When i use a function in this lib, however, when i try to compile it, it gives me errors like this.
error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)
And it gives them for a lot of functions. I do know what they mean i just don't know what to do about it....
I can compile it when i use Debug Multitread DLL.
I already contacted the auther of this project by mail but he doesn't seem to respond.
Thanks in advance
|
|
|
|
|
This happens if you use one setting for which runtime to use, and the lib was built using another. If it works when you use 'Debug Multithread DLL' but not when you use 'Debug Multithread', guess which one they used ?
Steve S
[This signature space available for rent]
|
|
|
|
|
Hi,
I need the solution or design where I should write the data strcut like this -
MyStruct{
string1 ;
string2;
float[ ]
}s;
s[ ];
I have written string1 and string2 using vector as these are dynamic arrays but I am not able to write dynamic arrays of float. I am planning to use something like vector here again.
Can somebody help me in this regard?
Regards,
MB
|
|
|
|
|
Use std::vector? It should work.
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
This is same structure I am looking to store or read
Name1, Name2
Surname1, Surmane2
MiddleName1,MiddleName2 //This structure has been stored in vector successfully
12, 12, 13
15, 14, 12
12, 34, 45 //Marks
// Marks in some test and these tests can grow up to 100 or 200
// and this arrays are not able to store in above vector
Please suggest me code or design for this problem.
Regards,
MB
|
|
|
|
|
Here's my suggestion:
typedef struct
{
string s1,
string s2;
vector <float> FloatVec;
} MyStruct;
and then:
vector <MyStruct> MyStructVector;
Best regards,
Alexandru Savescu
<small>P.S. Interested in art? Visit <a href="http://www.geocities.com/mirunadutescu" target="_blank"> this! </a></small>
|
|
|
|
|
I'm developing a kind of embeddable dialog window with all business functionality (as Composite Control)
There is an additional requirement: this control will be embedded into different applications (mostly written in VB) with different GUI layout rules. So it would be great to have possibility to rearrange and resize controls inside the Composite Control in design time.
How it could be implemented?
|
|
|
|
|
Hi All,
I am writing an ActiveX control and it have to work on VBA form (just my cool edit control). The problem is that the default implementation of ATL ActiveX full control refused to work with MS office VBA. (It works in any other containers like MSIE and so on)
Does anybody has an idea what's I am doing wrong? Or may be you can show me an example of the ActiveX control that can work with MS Office VBA
PS: Sorry for my poor English
Uladzimir
|
|
|
|
|
I hope you people can perhaps help me out here. I've inserted a ATL object into a MFC project and now i want to access that object through a console application that sets certain values. My question is: What kind of ATL/COM server is created when inserting an ATL object into a MFC project. Is it a ATL Server (Exe)? or Dll?
I can't find the object in the VC++ COM/DCOM object viewer, nor is the type library registered? How can i access this interface through COM?
Any help would be appriciated.
P.S. if the question is not clear, please specify which part, so can still hope for an answer.
|
|
|
|
|
A COM server under ATL can be in-proc, local, or remote given that it is non-ActiveX. An ActiveX server must be in-proc.
Is the COM server registered?
Kuphryn
|
|
|
|
|
Well yeah...i know that, but what kind of COM Server is it when i add it to a MFC project. I think, by the way, that's it's custom to use automation support for a MFC project, if you want to have server capibilites, but i'm still looking into that.
|
|
|
|
|
Abebe wrote:
What kind of ATL/COM server is created when inserting an ATL object into a MFC project
The type of COM server has nothing to do with ATL or MFC. If it's a DLL, then it's in-proc. If it's an EXE, it's an out-of-proc server.
--Mike--
Latest blog entry: *drool* (Alyson) [May 10]
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
I have a problem with the ATL counter type "PERF_AVERAGE_TIMER".
I use the following code to define and increment the value of the counter. It displays always the value 1200 at the Performance monitor.
DEFINE_COUNTER(m_nAvRequestTime, "Average Time", "Help.", PERF_AVERAGE_TIMER, 0)
DEFINE_COUNTER(m_nAvRequestTimeBase, "Average Time Base", "Base Help", PERF_AVERAGE_BASE, 0)
ULONG m_nAvRequestTime;
ULONG m_nAvRequestTimeBase;
InterlockedExchangeAdd((LPLONG)&m_nAvRequestTime, nT2minusT1);
InterlockedIncrement((LPLONG)&m_nAvRequestTimeBase);
The same logic, works fine if I use C#.
Do you know if there is any problem related with AVERAGE counters in ATL?
Thanks.
Paula
|
|
|
|
|
Hai all,
Can u plz tell me where can I getb the complete documentation with examples on MSflexGrid using VC++.This is very urgent !!!
ThomasKennedyBose
|
|
|
|
|
Hi, I need to create a new Activex control by sub classing another Activex control. This will retain all the old functionality plus some other functions can also be added, i have tried doing it through the MFC ATL wizard, but that only create a wrapper araound it. Also MFC's ActiveX control wizard does seem to support sub classing of some MS standard controls only.
if you have a way to acheive this then please do help.
Mayank Goyal
|
|
|
|
|
i was using WTL 7 application wizard and it was workign fine. But now whenever i generate code for any type of application from WTL wizard, iget following errors on compilation. i havent edited a single line of wizard generated code.
Compiling resources...
Compiling...
stdafx.cpp
c:\VS\vc98\include\shlobj.h(112) : error C2011: '_SHITEMID' : 'struct' type redefinition
c:\VS\vc98\include\shlobj.h(123) : error C2011: '_ITEMIDLIST' : 'struct' type redefinition
c:\VS\vc98\include\shlobj.h(2148) : error C2011: '_STRRET' : 'struct' type redefinition
d:\myprojects\try7\stdafx.cpp(8) : error C2856: #pragma hdrstop cannot be inside an #if block
Error executing cl.exe.
try7.exe - 4 error(s), 0 warning(s)
can neobne tell me the casuse and remedy for this error?
Thanx
Shoaib
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
I am quite new to ATL, and I have a problem with ActiveX controls. I use ATL to create a tree control to use in web pages. I want when double-clicking on a tree item, the web browser to navigate to some predefined URL. Everything is fine until the double-click. I don't know how to get the IWebBrowser2 interface (from the current browser) and make it navigate to the URL I specify. I have found an example that creates a new browser window and tells it to navigate to the URL, but it's not what I need.
Any ideas, or suggestions...
Thanks.
|
|
|
|
|
|
hello
can i store in valarray a vectors?
|
|
|
|
|
I have made component using ATL Com bu when i called it from ASP, i am getting follwoing error:
Server object, ASP 0177 (0x8002801D)
Library not registered.
Code:
dim objTrim
set objTrim = server.CreateObject ("MY_TRIM.TrimMain")
What am i missing here
Thanx
|
|
|
|
|
Looks like you need to register you COM component. Go to a command prompt; change the directory to your .dll and type: regsvr32 mydll.dll . Obviously replacing mydll.dll with the name of your component.
-Nick Parker
|
|
|
|
|
DLL is registered and same code is working fine when called from VB client.
|
|
|
|
|
IMHO, the "MY_TRIM.TrimMain" ProgID can be converted into the reasonable CLSID (say CLSID_TrimMain), but this CLSID's entry doesn't have any TypeLib information. Check the HKEY_CLASSES_ROOT\CLSID\{CLSID_TrimMain}\TypeLib key if exist.
With best wishes,
Vita
|
|
|
|
|
I have checked it at the specified location it exists.
One more thing i have registered same dll on some other machine and it works on it.
|
|
|
|
|
IMHO, your library has a reference to other type library which is absent on your computer.
With best wishes,
Vita
|
|
|
|