|
Rajveer wrote:
error LNK2001: unresolved external symbol _main
That's answered in the VC forum FAQ.
--Mike--
"COM didn't solve the old version of DLL hell - it just provided us with a new and improved version of hell."
-- John Simmons, 1/22/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
Hi everybody,
I would be glad if someone can tell me wich files are created, installed and/or modified with the installation of Visual C++ 6.
|
|
|
|
|
too many to be listed here!
:wq
|
|
|
|
|
So send me by e-mail.
otavio.romao@inatel.br
|
|
|
|
|
The only possible reason that I can see for you wanting that list is so you can try to rip it off and take a copy of it.
You could just buy it instead.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Hi, I just want it because one of my application is about to be distributed in many computers and this computers does not have VC++ installed. And the application only works in computers that already had the VC++. So there's why I'm asking the list because from there I could know the files, dll or lib, that I would need.
And here is the problem to you get it: the application is a COM app, an ATL COM AppWizard, which has 6 dll, where 4 is a simple dll and 2 has a dialog derived from CAxDialogImpl. The 4 dll's works perfectly but the others 2, when is about to show the dialog, make the application falls. These dll's are called by a macro from MSWord, the macro calls the 4 dll's perfectly, the problem is just when the macro needs to call the others 2.
One thing that happen is that I developed one app just to test and it had a dialog, a simple dialog, and it works.
Thanks.
Otávio
otavio.romao@inatel.br
|
|
|
|
|
Otávio wrote:
And the application only works in computers that already had the VC++.
Your app should not need VC to run... Are you comiling it in debug mode? If you compile in release mode, it should link to release versions of dll's etc.
You can use dependancy walker to work out exactly which files your app needs, and just distibute them.
Your VC++ license is for one computer... you are not allowed to distibute debug and source componenets of it, or install it on multiple computers.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
hi,
i want to set a style-bit of a dialogresource-editor-created combobox dynamically.
when i do this by ModifyStyle(0,CBS_AUTOHSCROLL); after creation, the combobox ignores the new style.
how can i change that? it seems to need this setting before creation, but where can i set the style before DDX-...() is called (there's no WM_CREATE- message for dialog-editor created controls)?
i have defined a control-variable in the class-wizzard for the combobox, maybe i can set in my views(dialogs) ctor something like m_ctrlCombo.SetStyle(CBS_AUTOHSCROLL);? when i use ModifyStyle() there - i get an ::isWnd()-assertion
does someone know the mysterious function and place?
thx
:wq
|
|
|
|
|
I'm afraid comboboxes do not admit having this style changed after creation. Why it is not an option having the corresponding check box ("Auto HScroll") checked on design time? Other solutions like overriding PreCreateWindow or PreSubclassWindow won't work eithr on your particular scneario.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
yeppa.
1.) PreCreate/PreSubclass was my first try
2.) i need this, because the WS_HSCROLL-style-bit has no checkbox in the properties-dialog for a combobox, but i need to enable WS_HSCROLL! the only possibility is to manually (!) insert WS_HSCROLL in the .rc-file (to the dialog-template definition) - which is kind of dowdy.
ps: erm, WS_HSCROLL can't be set after creation either...
:wq
|
|
|
|
|
Manually editing your .rc file is IMHO a perfect solution: the resource editor will preserve the flags you introduced, even if the control is changed later. I don't see that technique as "hacking" or anything like that --furthermore, it is the only solution you've got
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
How can I change color of only one cell in DBGrid?
|
|
|
|
|
When I use the function "accLocation" in an HTML page,
I get the points: top and left, that refer to the part of the page that I can see.
how can I get the points that refer to the beginning of the page?
For example:
I have a long html page (5000 points),
and I scrolled down.
We can see the points from 2500 to 3500.
I have an object that its top is 2700,
When I run the function "accLocation" I get the top 200.
How can I get the full measurement 2700?
Thank you
Chagit
|
|
|
|
|
Hi all,
I'm trying to use the ::AlphaBlt function to perform a simple fade effect on the screen. Basically I need to create a transition between the current bitmap on a dc, and a new bitmap which is to "fade in".
I have hacked up the following code, and it works somewhat. The problem is that it is not smooth. Also, it takes way toooo much cpu to do, and this causes inconsistencies in timing. Usually in runs in about a few seconds at 1024x768, but on some machines at 1280x1024, it takes 10 seconds or worse!
Here's the code. Hopefully it won't be too hard to read through the irrelevant stuff...
void
cPkpPhotoImage::BlitStretchedFromProprietaryBlitEffectFade(CDC& DestDc,
const cRect& PassedSourceRect, const cRect& DestRect, uint32 rop,
const sEffectInfo& EffectInfo)const
{
LBitmap* Bitmap = GetBlitBitmap();
if(!Bitmap)
{
// Should not get here.
ASSERT(false);
}
else
{
cSize ThisSize = GetCurrentImageSize();
cRect SourceRect(ThisSize);
BLENDFUNCTION BlendInfo;
BlendInfo.BlendOp = AC_SRC_OVER;
BlendInfo.BlendFlags = 0;
BlendInfo.AlphaFormat = 0;
BlendInfo.SourceConstantAlpha = (BYTE)grain;
CDC ThisDc;
if(LockDcInternal(ThisDc, Bitmap))
{
cTimer Timer;
cTimeTag WhenCanProgress;
cBitmap NoFlickerBitmap(DestDc, DestRect.GetSize());
cDC NoFlickerBitmapDc(&NoFlickerBitmap, &DestDc);
// First copy what's in the dest dc onto our temporary bitmap so we
// can do the fade.
NoFlickerBitmapDc.BitBlt(0, 0, DestRect.GetWidth(),
DestRect.GetHeight(), &DestDc, DestRect.left, DestRect.top, rop);
int numIterations = ((256 / grain) * 2) + 1;
for(int i = 0; i < numIterations; i++)
{
// Do the alpha blend onto the temporary bitmap.
::AlphaBlend(NoFlickerBitmapDc.m_hDC, 0, 0,
DestRect.GetWidth(), DestRect.GetHeight(), ThisDc.m_hDC,
SourceRect.left, SourceRect.top, SourceRect.GetWidth(),
SourceRect.GetHeight(), BlendInfo);
// Now we wait a bit if we're too quick. Note that we do as much
// processing before waiting, to ensure delay accuracy.
for(;;)
{
if(Timer > WhenCanProgress)
{
// Can progress.
break;
}
else
{
int sleepTime = -(Timer - WhenCanProgress);
if(sleepTime > 0)
{
::Sleep(sleepTime - 2);
}
}
}
// Then blit that bitmap onto the dest dc.
DestDc.BitBlt(DestRect.left, DestRect.top, DestRect.GetWidth(),
DestRect.GetHeight(), &NoFlickerBitmapDc, 0, 0, rop);
WhenCanProgress = cTimeTag(Timer, delay);
}
// Now do the final, non-transparent blit.
{
DestDc.StretchBlt(0, 0, DestRect.GetWidth(), DestRect.GetHeight(),
&ThisDc, SourceRect.left, SourceRect.top, SourceRect.GetWidth(),
SourceRect.GetHeight(), rop);
}
UnlockDcInternal(ThisDc, Bitmap);
}
}
}
Note that I use NoFlickerBitmap (cBitmap is just an extended version of CBitmap), into which I create the composite semi faded image. This image I then opaquely blit onto the destination dc. I have to do this because ::AlphaBlend() doesn't do a nice clean blit; rather it does some kind of iterative scan, which can be seen and looks quite ugly.
One way I could do this is create a window over the region i was to fade, and just use the dialog fading code article. Unfortunately, this seems kind of like a hack, and I'm reluctant to do it. There must be a better way!
Thanks!
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Nothing constructive in this post, as I don't use GDI or GDI+, but...
DirectX is funner!
-Domenic Denicola-
Geek^n
http://madhamster.50megs.com
"Any technology that is indistinguishable from magic is insufficiently advanced..."
|
|
|
|
|
Hi Coders,
Did somebody know how to retrieve the IE Settings from the registry and where they are located in the registry ??
thanx a lot.
Best Regards
Sonu
|
|
|
|
|
The exact location varies from release to release, and it is not guaranteed to remain stable on future updates, so it is safer to use <a href="http://msdn.microsoft.com/workshop/networking/wininet/reference/functions/internetqueryoption.asp">InternetQueryOption</a> for retrieving IE settings.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
maybe you will find the reg-entries here but beware of different locations at othe ie-versions
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\...
the win32 API provides a lot of functions to access reg-entries like RegOpenKey(), RegCloseKey() and so on ... see MSDN for more
Stay heavy ... RockNix///
---------------------------------
Look out for free Win32
Serial Communication Module
for VC++ or Borland C++ Builder
on http://www.klangwerker.de
-------------------------------
|
|
|
|
|
I Have a CListCtrl on a FormView, have used Class wizard to create on right click event, I also have added code to this event that creates a pop up menu, the thing is I want the Popup menu to be in the location of the Right mouse click ?
I sure that the mouse location passed to the function as part of NMHDR* pNMHDR
Any help please???????;P
Tricky Dicky
|
|
|
|
|
Why not just use the ::GetCursorPos() api function? It will return the current mouse position, which you can convert to client coordinates via a call to ScreenToClient().
Cheers,
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Thanks Worked a treat (no need to do ScreenToClient)
Tricky Dicky
|
|
|
|
|
cast to the right structure first:
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
then take
pNMListView->ptAction
:wq
|
|
|
|
|
Hi,
I need to know how can I link together all the dependent libraries of an EXE file in the way to only carry the EXE file betwen computers (not a special installation file but the same EXE with the libraries within).
Anybody knows how to arrange this simple problem?
Thanks in advance.
Edgar
Edgar Berengena Moreno
Software Engineer
La Salle University, URL.
Barcelona, Spain.
|
|
|
|
|
Anybody knows how to arrange this simple problem?
IMHO this is no simple problem at all, if you're referring to linked DLLs.
For MFC and the C run-time library, you can choose static linking, which produces an EXE that does not depend on the MFC and C run-time DLLs.
As for other DLLs, I guess the closest you can get to what you want (without getting into a real mess) is having a packed installation EXE like those produced by InstallShield and similar products.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
First of all thank you for your reply.
I've been searching information on static linking, but I couldn't find how to do it. Do you know which is the way?, that's the solution I need...
Thank you again.
Edgar
Edgar Berengena Moreno
Software Engineer
La Salle University, URL.
Barcelona, Spain.
|
|
|
|
|