mkoren's Q&A profile
.NET Development Referencing DLL's in the GAC
I have a dll listed in the GAC on both windows 2000 sp4 and windows xp sp2 but it does not appear under the .NET list when I select 'Add Reference' from within Visual Studio 2005. If I try to browse to the c:\WINNT\assembly directory and add the dll from there it won't let me. Can anyone tell me how to include dll's from the GAC to my references. The only dll I have is the one that is registered in the GAC, but this doesn't show up under the .NET list when I try to Add Reference. Since I can't copy the file elsewhere, or specify the GAC directory in the registry I can't use the supplied solutions in the link. Could this be an installation problem where the dll just hasn't registered pr ...Show All
Visual Basic Installing VS 2005 Broke ActiveX in VB6 and Access - Need Help
I have a development machine at work that has Access 2000 and VB6 on it with working projects. I have installed VS 2005 as I am training in that language now as well. My problem is that I have functioning code in Access and VB6 that no longer works because of the licensing errors for ActiveX objects. The only KB article I found that remotely refers to this issue asks that you import the VB6Controls.reg file on VS 2005 Pro CD #2. I went to do it and the .reg file does not exist on any of the VS CD's and I'm not even sure if this is the fix I want to use. I need the code in VB6 and Access to continue working but I also want to develop new things in VS 2005. Help Thanks! Can you please tell me which co ...Show All
Visual C++ C++ Newbie needs a c++ expert converting bits to bytes
Hello all, I need some C++ experts to help me with a problem I have in converting a PBM file to a PGM file. These files are used to store digital images. The PBM file uses monochrome to display images while the PGM file is a grayscale image. I have written a test program that works somewhat. The problem I have is that the PBM format uses 1 bit to represent a pixel while the PGM format uses 1 byte to represent a pixel. Therefore 1 byte in PBM format represents 8 pixels. I need help in converting those bits to bytes for the PGM format. I am not sure how to achieve this. I have never really had any experience in masking bytes. Here is my code thus far: #include <iostream> #include <fstream> #include <string> using namespace ...Show All
Visual C# Controlling a Java applet through a C# App
Does anyone know if it is possible to control a Java Apple through a C# application Like click things and control things on a Java Applet without really clicking. If so do you know any resources or can you help me with this Thanks Hi, Fradam It is possible to do so. Try to read the following artilces, it will give you some ideas about it: http://msdn2.microsoft.com/en-us/vstudio/aa700845.aspx http://www.devx.com/interop/Article/19945 Thank you ...Show All
Visual C++ Junk values when build in Release mode
Hello Everybody, I am having a strange problem in one of my VC++ code. I am setting a value in the code, which is getting retrieved perfectly when executed in DEBUG mode. But when I try to execute the same in RELEASE mode only junk values are being returned instead. I am totally clueless. Could anybody be having some idea on this My code snippet is as follows: _bstr_t szStatus = _T(""); _bstr_t szMessage = _T("not available"); // the value that I am trying to set int retVal = -1; try { retVal = m_oSql.GetStatusDescriptionSQL(...); if (retVal == 0) { szStatus = szMessage; // the value is being assigned here } } catch ( CSQLException& e ) { return this->Error(CComBSTR(e.m_szMsg), IID_ICola, E_F ...Show All
SQL Server How to use a Table Variable
Hi all, I have a table which holds a list of users names & the table assigned to each, e.g. - John Smith - Table1 - bob Jones - Table2 etc I have a store procedure which calls the information from the user's table based on the username. Something like this: Select * from @UserTable So if user is John Smith then @UserTable = Table1. Though the @ function does not work for referencing a table. Is there a workaround to this Rgds & thanks. Hi, Couldn't you federate the username table and the multiple user tables into only one table and use a stored procedure That would save you a lot of trouble. i.e. where you have: Table_users User_Name, value_1, Value_2, Value_3 Value ...Show All
SQL Server Help with installing VS Tools
Hi, I have a problem with the installation of SSCE31VSTools-ENU.exe into VS2005. The installation ended after a few seconds although in the event log there is information that the product is successfuly installed. However, when I run Visual studio there is no project under Smart Device regarding SQL Compact database or something similar (there are only templates for: device application, class library, control library, console application, empty project and nothing more) VS2005 is in this version 8.0.50727.762 (SP.050727-7600) In application event log there is: Product: Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005 [ENU] -- Configuration completed successfully.'" Has anyone some idea if there is a ...Show All
Smart Device Development fatal error C1189: #error : Must define a target architecture.
hello, ***************************************************************** #include "stdafx.h" #include <windows.h> #include <commctrl.h> #include <rtccore.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { // RTC Initialization // Use COINIT_MULTITHREADED on Windows CE ::CoInitializeEx(NULL,COINIT_MULTITHREADED); HRESULT hr = S_OK; // Create the RTC Client COM object. IRTCClient *pIRTCClient; hr = CoCreateInstance( CLSID_RTCClient, NULL, CLSCTX_INPROC_SERVER, IID_IRTCClient, reinterpret_cast < void **> (&pIRTCClient) ); // if (hr != S_OK) process error here. // Initialize ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Arcball not center in the middle of the mesh...
I use Arcball and everything is working The only problem is that the Rotation happen in the foot of the Dwarf I try to rotate Apparently the trackball is centered at 0,0,0 and not in the center of the Mesh As I understand it we need 2 vector center at the center of the mesh and going to the surface of the trackballl After we have those we can do the CrossProduct and the DotProduct to get the Quaternion ScreenToVector is supposed to get those but right now it use 0,0,0 as the center of the ball and not the center of the mesh Or maybe I need to translate the mesh to the center… Currently I dont use the Transformation of the pts * the inverse of the ViewMatrice in the Begin and Move function of the Trackball The que ...Show All
SQL Server A transport-level error has occurred when sending the request to the server
I've tried to search on the web for a solution for this error but i didn't find any working solutions for this problem. We have 2 servers. The first one is the server we use to develop our ASP.NET 2 application. On this server we don't have this error. On the other server (use by our client) we have this error sometime and i don't know why. Both servers have the same configuration and both application have the same web.config file. I've tried to add a try-catch and retry the query when the error occured. This seems to be working but we don't want to have to change all our connections and since we don't have this problem on the other server we want to find the source of the problem. Any idea Thanks ! The ...Show All
SQL Server Scale-out on XP in Workgroup?
I'm trying to test scale-out functionality. I have three XP VXC images. All in workgroup, using Administrator as interactive as well as service logins. Administrator has same password on all three VPC images. Is it possible to fun a web farm in this scenario VPC A: SQL Server is installed, functioning properly. VPC B: RS is installed and uses SQL Server on A, functioning properly VPC C: I cannot get this initialized (from VPC B). I used the directions in the July BOL. Using Report Server Configuration, I get below error when I connect to B and try to Initialize C: ReportServicesConfigUI.WMIProvider.WMIProviderException: A connection to the computer cannot be established. ---> System.UnauthorizedAccessException: Access ...Show All
SQL Server Many-to-Many MDX
I have a measure called MyMeasure. There is a dimension called Account There is a dimension called AccountGroup that groups many accounts so it references the cube through a Many-to-Many relationship. The account group has a field called Group Level. If for example, I want to know the number of accounts for a region I would do something like this: SELECT {[Account Group].[Account Group].[New South Wales] } ON ROWS , {[Measures].[MyMeasure]} ON COLUMNS FROM [MyCube] WHERE ([Account Group].[Group Level].[Region]) This will give me: -------------------------------------------------------------- | Account Group | &nbs ...Show All
Visual C# can i create a new object using a variable?
for example.. i want to create a new Panel everytime i click on the "next button" .. but each time i want its name to be different,, like for example onButton_Click(...) { Panel panel(here i want to add a variable or whatever to make it unique) = new Panel(); } using System.Collections.Generic; Dictionary<String, Control> MyControls = new Dictionary<String, Control> public void Button1_OnClick(Object sender, EventArgs e) { MyControls["somevariable" + "name" + 1].add(new Panel); MyControls["somevariable" + "name" + 1].Name = "somevariablename1"; } void SomeWhereElse() { Panel pnlNameDoesntMatter = (Panel) MyControls["somevaraiblename1" ...Show All
Visual Studio Team System Best Practices for Collaborating on Diagrams
Has anybody developed any good practices for sharing an SDM diagram with people who don't happen to have access Visual Studio for filling details For instance, I am working on the architecture for a solution, and I've built an SDM diagram that shows the high-level design of the entire solution. I'd like to have a network engineer fill in the specific details of machine names, etc., for the various environments to which the solution will be deployed (development, testing, production, etc.), but I cannot count on my engineers having Visual Studio. If I could export to Visio, that'd be cool; the engineers all have Visio. Even if I couldn't do a full round-trip back into Visual Studio, it would still save me a lot of work to let them edit a V ...Show All
Internet Explorer Development New ActiveXObject()
Hi, I'm trying to instantiate an activex object from javascript from 2 different browsers and everything works fine. Now I want the 2 browsers to share the same activex object as one of the browsers will invoke some methods and the other will listen to some events. I created an ActiveX EXE in VB 6 just to prove the concept and set the class instantiation to MultiUse but it seems that the browsers have different instances. This is the pseudo-code Browser1 <script language=jscript> var obj = new ActiveXObject("Bridge.Communicator"); obj.CallMethod("test"); </script> Browser2 <Script language=jscript> var obj = new ActiveXObject("Bridge.Communicator"); </script> <Script ...Show All
