Answer Questions
mattdawg issues!!! my activex is not installed with security warning.
hi. in a few day, i m getting a deep trouble. it is which My ActiveX prog is not installed under webbrowser(IE6). also, i could see a guide about ActiveX Security Safe for Initializing and scripting from MSDN and support.microsoft.com from this link: http://msdn.microsoft.com/library/default.asp url=/workshop/components/activex/safety.asp http://support.microsoft.com/kb/161873/ko so i supply the implementation to my activex code. i package my activex prog into .cab file together code signe. in the test, first, i connect a website that stored my activex .cab file by using IE. then IE display a 'ActiveX Install Security warning dialog' and i click OK.   ...Show All
Covi Error in vector allocation.
I have a large application that's been working for several years. Recently I was doing some work and I started getting errors every time I allocate a vector and use it once: vector<int> myvec; myvec.push_back(0); At this point I receive an access violation: msvcp80d.dll!std::_Container_base::_Orphan_all() Line 197 + 0x5 bytes C++ : Access violation writing location 0xcdcdcdcd Here's the code (the error line is bolded): inline void __CLR_OR_THIS_CALL _Container_base::_Orphan_all() const { // orphan all iterators _Lockit _Lock(_LOCK_DEBUG); if (_Myfirstiter != _IGNORE_MYITERLIST) { for (_Iterator_base **_Pnext = (_Iterator_base **)&_Myfirstiter; *_Pnext != 0; *_Pnext = (*_Pnext)->_Mynextiter) ...Show All
Grant Jenkins Does VS2005 include Windows Installer?
Does VS2005 include Windows Installer If so, how do I run it to create an installation package for users to install or upgrade my products Using your clues, I found some of what I wanted in only 15 minutes; I do not consider this "easy". And I found it on MSDN, as you suggested, but not in the VS2005 local docs. The latter, by the way, has hundreds of pages describing the syntax of Windows Installer, which I had read before I posted, but nothing on how to use it. I have several problems with the current doc system: 1) It is syntax-oriented. Unless you know the product/function/protocol name, etc. in Microsoft-ese, you won't be able to find it without extensive searching. 2) The indexin ...Show All
zdrae Missing icons on MDI child windows
Having written code to create MDI master and child windows using Win32 API, I have discovered that when using the application under the Windows XP theme, icons assigned to the MDI child only appear when the child is maximized. When the child is minimized or normalized, a white space appears where the icon should be. The icon is assigned using - SetClassLong(widgets[1].hwnd, GCL_HICON, (LONG)geeicon); The icons appear using the same code using Windows 2000 and Windows XP, classic theme. Also if you start the application using classic theme and then change to XP theme the icons stay attached to the child windows. It is only if you start the appication in Windows XP theme that the icons are missing. Any ideas ...Show All
lushdog infinite looooooop?
hi i have this infinite loop int array[5]; for (i=0;i<15;i++) { array[ i ] = 0; // here i becomes ZERO when i = 5 } i am not understanding why this is infinite loop.. "i" is incrementing till 5 then suddenly it becomes 0.. and i mean i never goes beyond 5. so the infinite.. . can any one tell me why "i" becoming 0.. after 5 in the loop.. manish Probably due to a corrupted stack. Your array will fit 5 entries, and you write across that. The for loop should stop at i == 4. which compiler are you using imanish11111 wrote: . can any one ...Show All
Torpedoke LNK2019: unresolved external symbol error when using #include <fstream>
ERROR: ---------------------------------------------------------- error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_ $ 6DU $char_traits@D@std@@@std@@YAAAV $basic_ostream@DU $char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function "public: static void __cdecl Message::init(void)" ( init@Message@@SAXXZ) Message.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> & ...Show All
Jon Stroh Problem with editing treeview labels (case-specific problem)
Hi, In the application that I am creating, I am having a rather unique problem: I need to syncronize the pszText property of TreeView items with the char* 'id' variable of certain objects. Up until now, I had no way of really knowing if the two were syncronized. I recently tried to add a 'duplicate' option and discovered that it is not working. My current code is as follows: case IDCM_rRENAME: //Context-Menu option for renaming my TreeView Item { SetFocus(rcTree); char* label=GetTreeLabel(TreeView_GetSelection(rcTree)); //Custom function HTREEITEM parent=TreeView_GetParent(rcTree,TreeView_GetSelection(rcTree)); TreeView_EditLabel(rcTree,TreeView_GetSelection(rcTree)); Visual::Sprite2D *test=Find(sprite,label); test->id=GetTr ...Show All
Jameslee20 A final WMI question (I hope)
Hi Folks; I need to use WMI to determine the disk drive sizes in a system with multiple drives. The system I've tested this on has the drives but WMI seems to add the drive sizes together. I've looked on the msdn site and checked out the Win32_DiskDrive table but couldn't find anything to specifically meet my needs. I was wondering if there was a way to pull out individual drive sizes. Why do you need to use WMI If you're using .NET 2.0 you can use the FileSystem.GetDriveInfo method. If you're not in .NET you can use the Platform SDK function GetDiskFreeSpace[Ex]. OK. What I need though is not so much the free space but the sizes of the drives. So if I had an 80Gb and 20Gb then I need a query that returns a list 80Gb,20Gb ...Show All
Rakesh Jha Command line compiler help needed!!!!
I'm trying to compile the below code with the command line compiler but I get a bunch of errors Errors like 'System' is not a class or namespace name Can the command line compiler be used on this type of code #include <stdio.h> #include <stdlib.h> using namespace System::IO; using namespace System::Text::RegularExpressions; void main (void) { int index = 0; String ^line; Regex^ rx = gcnew Regex(",") StreamReader^ sr = gcnew StreamReader(testfile.tif); while ( line = sr->ReadLine() ) { array<int>^ ia = rx->Split(line); } int a=array[index++]; int b=array[index++]; int c=array[index++]; if (a <= 42) { b--; if (c > 1444) c--; } else if (a > 42) { do { a += b; } while (b <= 1000); } ...Show All
Hiral VS2005 SP1 released
VS2005 SP1 is released. http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx If you have any trouble installing, be aware of http://support.microsoft.com/kb/925336 (that exact problem happened to me when I tried to install VS2005 SP1) Ted, The link to the KB aritcle (928957) comes up as missing. Is there a list of fixes somewhere Thanks, Paul If you've applied SP1, then in your C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86 folder. Kamen Just a quick note. Don't forget to update your targets' redistributables or your application may not run! I got bit by this in a particularly nasty fashion: my devel ...Show All
LeoXue MFC edit control border
Hi, I'm trying to make various MFC applications with edit controls using VS2005 when I noticed my professor's edit controls were flat, 2D with just a blue border. I have no idea how to accomplish this. In VS2005, I open the IDD_FORMVIEW and add an edit control with no static edge or anything, just border set to true. In the designer and the "Test Dialog" mode, the control looks correct: 2D, blue border, very simple. But when I build and run, the blue border is gone and the edit control is now sunken and 3D. My professor has no idea why his is different, since our edit controls use the same options. I have also tried to do the exact same thing in VS2003 on a different computer, wit ...Show All
protovision random movement horizontaly...
does anyone know how to generate random movement horizontaly using random function I know how the function works to generate the numbers but cant generate movement... Im using C language. I already try that but doesn't give the movement... just makes the char blink in the coordinates! thanks anyway Please be more specific about "generate random movement". What do you intend to move Not sure what you're trying to do here. However, the rand() function returns a random integer value between 0 and 32767. That's not going to be a good value to use as the Y-coordinate value for gotoxy(); 99.924% of the time, you'll try to move something off ...Show All
ddog_iasreo Using properties/methods of Win form controls beyond scope of proj namespace
Hi all, Possibly a very simple answer - but no documentation has revealed the answer so any help would be very useful. I have a Windows forms application project with a few controls, built with the form designer. In the header file for this form (the usual "Form1.h") I have the namespace named after my project and within it, the usual managed class defining the form and its controls. My question is, if I need to access the properties and methods of these controls from beyond the scope of the namespace, how can I resolve scope to access the form and its controls Ideally this would be possible from a separate source file, but essentially the methods and properties of a control on the form must be accessible from outside ...Show All
dougknows ListView controll
Hi! I use ListView controll from commctrl.h. And I need some how to know when user scroll to the end of list. How can I know about it I founded special events: LVN_BEGINSCROLL\ LVN_ENDSCROLL but I dont know how to use this event for my problem.... Help me please! Thank you. A better place for such issues is the newsgroups at http://msdn.microsoft.com/newsgroups OTP Thanks, Ayman Shoukry VC++ Team ...Show All
TTris LNK1118 in VC2005
Hi all, I am porting my DLL from VC6 to VC8. In the def file i have used segments like this SEGMENTS App_init DISCARDABLE PRELOAD. But when i compile the same dll in VC8 it gives me LNK 1118. syntax error in SEGMENTS section. I have tried SEGMENTS App_init DISCARDABLE and it works. I want to know whether preload is avaialble in VC8 or not. If yes what should be correct syntax for that. Any help, link will be greatly appreciated. Forget this old def file entries. They have no function any longer. Read the docs for the definition files, those keywords are no longer in use. http://msdn2.microsoft.com/en-us/library/h41zhe21.aspx ...Show All
