Igor Afanasev's Q&A profile
Windows Forms In Beta2 webbrowser control howto: webbrowser1.securitylevel = ...restricted
How does one set the beta2 or later webbrowser control so that no javascript will run when html is interpreted I see howtos saying webbrowser1.securitylevel = ...restricted, but: that property seems gone in beta2... Any ideas appreciated. ...Show All
Smart Device Development How to capture "X" button?
Hi, In windows mobile 5.0,visual C++,I use the following code to create a popup window: CString szClassName = AfxRegisterWndClass(CS_SAVEBITS | CS_HREDRAW | CS_VREDRAW,   ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .XWB file format
Hi, I need access to the WAV bits. I don't see a runtime interface to access this, so I was thinking I could extract them from the .xwb file. Now the problem is the file format. I see the .xap file format is listed in the docs, but nothing on .xwb. How can I obtain access to the raw WAV bits in XACT Regards. The WaveBank file format is in the header xact2wb.h (in the same folder as xact.h). The first "entr ...Show All
Visual C# Code execution just occurs on debugging time...HELP!
Hi, I don't if this is real, or whether someone (something) is kidding me. What if I tell you that some code of my application only works in debugging time...I'm very stressed about this...it's just a simple "if - else" that doesn't work unless I set a breakpoint there. What can be the mistake Code: if (!ObjMenuXRol.existeMenuXRol(pkRolTemp, pkMenuTemp)) { ObjMenuXRol.UIMenuXRol.Valor = formEntrada.P ...Show All
Visual Studio Tools for Office Unable to move outlook add in code to other machine
Hi, I'm trying to move my code to another machine so I can work from there too. But the add in does not compile once moved. It gives me errors like not reconizing thisApplication class or the declared variable outAddIn of OutlookAddin Type. Also, I run the msi on my machine for the registry entries but it didn't fixed either. Does any body know how to fix it Best Regards Hi, If after moving your code, I presume by mov ...Show All
Visual Studio Express Editions binary serialize
hello,i'm new on this forum,and i'm here coz` i have a little problem serializing objects. i have a binary file where i have more the one serialized object. after the deserializetion i'm getting only the first serialized object (it's normal )...my problem is : i need a code for getting all the serialized objects... i've tried something with loop..it looks like this: [code] FileStream s; s = new FileStream("c: ...Show All
Visual Studio 2008 (Pre-release) svchost error (again!)
I seem to be havng the same issue a lot of people are having. When I boot my computer I get a Generic Host Process for Win32 error. I only see this during boot. This error seems to point to a file called vssapi.dll as well as a '.dir00' folder. Throughout using my computer I receive 'svchost.exe instruction at "0x754067d3" referenced memory at "0xfffffff" ....." errors. I've made numerous attempts to find what is caus ...Show All
SQL Server is it possible to have variant condition clause in procedure?
i want to use OLEDB to build a COM for my app in the case, i want to execute a select statement which the where-clause is variant. ex, select * from db1 where code='abc' select * from db1 where name='mike' As it's very difficult to change sql-command in oledb, i want to build a procedure like this, create procedure viewDB @filter CHAR(20) as select * from db1 where @filter go but failed! i tried EXEC( select ), ...Show All
Visual C++ Statc lib to be used by more MFC clients
Hello, I have a question about linking a static library to clients with and without MFC. We have a static library (for Win XP and Win CE) that wraps the msxml component. We would like to have it as independent as possible so that we can use it with apps that use MFC or not, and also static and dynamically linked MFC. Is this even possible (I keep running into problems during linking). I have removed all MFC code from the library and replac ...Show All
Smart Device Development How to use multiline button text?
I see that in vs 2005, writing in vb, that it can now apparently handle multiline button text. On the IDE, in the box that asks for my text, I can click on the drop down, and it opens a window where I can type in something like: Main Menu (having pressed my Enter key after the word 'Main') and it shows exactly like I want it on the IDE. (Actually, I did not have a blank line between the two words--it's just doing that in this text edito ...Show All
Windows Forms Databinding problem
Hi everybody. I have a form which contains a user control. When the form loads, I'm populating some DataSet, and assigning the dataset refernece to one of the control properties. The control contains other control that are bound to various paths on that dataset, adding new rows, modifying, etc. Now, I want to update the changes back to the database with dataadapters. I can put a Update button on the control itself, or in the form containing ...Show All
Visual C# How to zip files using C#
Hi guys, i was wondering if there is any form of API found with the .NET which allows a develope to zip up the files nedeed pls See http://forums.microsoft.com/msdn/ShowPost.aspx PostID=106888 ...Show All
SQL Server Subscriptions and Windows NT Auth?
Is there a way to work with subscripts for differnt users with windows NT authentication (Analysis Services - with Dimension Security) I need to have different users in the connection - but with the subscription you cannot specify the user for the datasource. You need to specify a single user on the datasource to use for reporting services. Why - and why its possible to specify an NT user for the fileshare - why not for the datasource Is there ...Show All
.NET Development COM and .NET2 Interoperability
Hi! I was started migrating project to Visual Studio 2005 and I discovered problem with iterating through collection from COM object. This was working fine in VS2003, but now I get this error: "Unable to cast COM object of type 'System.__ComObject' to class type 'OurLibrary.OurClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ ...Show All
Software Development for Windows Vista Vista Build?
Hello, There was some talk at the Vista Audio Summit that more builds of Vista would be made available then are available to the 'general' development community. Currently Build 5308 (Feb 06 CTP) is all that is available on the MSDN site (along with WDK/SDK 5308). Is a newer build available How would we go about getting it Thank you, David A. Hoatson Please contact me at Arif.Gursel@microsoft.com to have your ...Show All
