Oleksiy's Q&A profile
Visual C# Returning different class types at different levels of inheritance.
What is the 'correct' way to : 1) Enforce derived classes provide an overriden method Parent AND 2 ) Each Parent returns a different class So Kid.Parent returns a Father, Father.Parent returns a GrandFather All of the classes derive from a base class - let us say Adam. Adam's Parent method cannot be abstract because overriding Adam's method requires that the return type of the 'get' is the same. If Adam has abstract pub ...Show All
SQL Server Transferring table data from an ODBC database to a SQL Express database
I am a SQL newbie. I have two connected databases that I work with in Visual Web Developer Express or Visual Basic Express. One is an ODBC master database that contains much table data and the other is my new destination sql express database. Where I was once very comfortable using the query grid in Access to accomplish almost anything with tables, it seems like now it is much more difficult. Can someone offer m ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WOW...strange problem with deleting meshed "DYNAMIC"ly flagged
Hello, recently I transformed my "game"(just at early stages) into DXUT framework, so I dont have to spend time with many windows related stuff. Anyway, when I was switching between WINDOWED/FULLSCREEN I was getting error that there are some resources that are not freed. I corrected memory leaks and this error message was still showing up. I couldn't find more unfreed resources...but then I just tried deleting D3DXMESH_DYNAMIC fr ...Show All
Visual Basic bit depth
hi ppl.. i want to know if we can convert jpeg file to bmp file while we restore the bit depth (24 bit in jpeg format) to (8 bit in bmp format) which is changed by default (by editing in mspaint) ... u can see such bitmap file in urs "c:\document & settings\"(current user)"\local settings\microsoft\application data\ " folder which file is actually the one set as background on ur desktop There is no si ...Show All
.NET Development Mutex Access problem
Mutex Access problem I have ASP.NET (.NET 2.0) and windows form (.NET 2.0) application and I would like to protect some part of the code from executing in the same time. For protection I use following code: static bool Function() { bool bMutexWasSignalised = false ; Mutex oMutex = null ; try { bool bCreatedNew; oMutex = new ...Show All
Visual C# DLLIMPORT AND VARIANT ARRAY
Many thanks for you answer, but problems --------------- c++ method ------------------------------------------- long __declspec(dllexport) __stdcall Register( const char* szServiceName, const char *szSymbolName, VARIANT& pVariantArray) { SAFEARRAY FAR ** pSArray = V_ARRAYREF(&pVariantArray); UINT uDim=0; if ( (uDim=SafeArrayGetDim(*pSArray)) != 2 ) { &nbs ...Show All
Windows Forms The best way to communicate with a windows service
I have an Idea of creating an application. The application sould be a windows service. But what is I whant a windows forms application to comunicate with the Windows Service, what is the best way to do that Actually I was talking ...Show All
Visual Basic VB.Net 2003 Main Form Locks Up
Hello, I have a problem where on 95% of the machines I load my app on, it runs fine. On about 5% of the machines the default form will not hide and call the next form to display. The default form stay visible and the CPU usage in task manager shows 100%. I use the following to call the and hide the forms: frmDisclosure.DefInstance.Hide() ...Show All
Visual C++ I am use visual c++ about 3 years. I found MFC is hard to learn. I want to return to pure c++. Is anybody likes as me?
I am use visual c++ about 3 years. I found MFC is hard to learn. I want to return to pure c++. Is anybody likes as me Yes, I feel the same as the original poster. I wonder if it ever occured to Microsoft that most of us have to develop projects to make a living and don't have the time anymore to invest months into studying new languages, new frameworks and new paradigms In our company we made the decision to continue using C++ and MFC. Fr ...Show All
Smart Device Development Can't access any Windows Mobile 5.0 projects or emulator in VS2005 Beta 2
I'm probably doing something very stupid but I'd appreciate any assistance. I am trying to get up to speed on Windows Mobile 5.0 development and I have installed (in this order): Visual Studio 2005 Team Suite Beta 2 DMA Transport Update Windows Mobile 5.0 SDKs for Pocket PC and Smartphone When I try to create a new project, I only see Pocket PC 2003, Smartphone 2003 and Windows CE 5.0 but no reference to Windows Mobile 5.0 (or Magneto as I belie ...Show All
SQL Server Setting up a Content Manager
I have inherited an application that calls RS via the web service. The security on the Report Manager appears to be such that the previous developer was the only person who could upload reports. This person is no longer with my organisation. Is there a way to add myself as a Content Manager I am in the administrators group on the server and running the Report Manager locally still only allows me to view the General information and not to cha ...Show All
Software Development for Windows Vista InvokeWebService Activity - dynamically change the URL
Is it possible to dynamically change the URL for the InvokeWebService activity. I'm trying to call a SharePoint web service from within the workflow and I need to change the URL. Thx in advance, Joris [WSS MVP - http://jopx.blogspot.com] When you use the InvokeWebService activity, you add a web reference to your project. You can use the Dynamic addressing of the web reference ...Show All
Visual C# 101 Samples for Visual Studio 2005
Hi, I wonder if anybody can maybe help me. I recently downloaded the "101 Samples for Visual Studio 2005", from the following link http://lab.msdn.microsoft.com/vs2005/downloads/101samples/default.aspx I wanted to test and see how Datasets work in the new SQL Express. The application that I was testing is called "Reading and Writing Images from a Database", and is located in the Data Access folder. When I run the application, I can select a new ...Show All
Software Development for Windows Vista Newbie question about removing the use of MSDTC
Forgive the lameness of this question. I am part of a team that has developed a Visual Studio 2005 web application that currently uses MSDTC and Microsoft Enterprise Library. The problem is that my hosting team will not run the MSDTC as a service as they say it opens up too many ports to the database server and this could be dangerous for a web application. Where do I start in rectifying this Is it possible to easily remove where MSDTC is ...Show All
.NET Development AppDomain.Load() problem
Hi everybody! I've developed a small application server using the .NET Framework v2.0.50215. The solution is splitted into projects. One of the projects contains all classes which should be shared between the server and the application (such things like an abstract class Application and so on). The Application server loads dynamically the application, which is a DLL-Assembly using the follogwing code: AppDomainSetup ads = new AppDomainS ...Show All
