Pascal Frey's Q&A profile
SQL Server Create a database with unicode characers
Hi, My database i have to store arabic as well as english. I read in the forum, it says we have to use nchar or nvarchar as data type for the column to store unicode data. But i have to create only the database with unicode character set.Because the software am gng to install itself creates the table for the database. Any solutions Regs, Priya English and Arabic characters are included in the 1256 codepage and you don’t have to use “Unicode” if the target machines have Arabic support correctly. Make sure your regional settings are set to Arabic and that the language of non-Unicode programs are Arabic. For more details check Arabic support in Windows . ...Show All
SQL Server can't drop login
can't drop login icrosoft SQL Server, Error: 15141 The server principal owns an event notification and cannot be dropped. notification services do not show anything, where else could it be Have you checked sys.server_event_notifications Is there any notification there owned by the login Queues are owned by database principals, so this error is not caused by the presence of a queue. Thanks Laurentiu ...Show All
Software Development for Windows Vista DwmSetWindowAttribute and DWMWA_ALLOW_NCPAINT question
I'm trying to draw on the NC area and it seems to have absolutely no effect. I found DWMWA_ALLOW_NCPAINT and hoped that this would allow NC Painting with GetWindowDC or GetDCEx. However, simply setting this property seems to disable the glass frame rendering - I end up with a solid white area instead (although the drop shadow and "glow" of the min/max buttons remains functional). Anyone know if I'm missing a vital step here Backwards compatibility is a tricky thing. The transparent non-client area is more than just a different color. It involves blending content from behind a window, which means mixing content from multiple applications, so it is done in a different process (the DWM) ...Show All
Visual Studio 2008 (Pre-release) Newest Interactive Designer xaml code compatibility ?!?!?!?
Hello, im trying to create a xbap application using a xaml code done with the newest Interactive Designer version but i just get errors while debuging in VS2005. Is the Expression Apps code not 100% compatible with VS2005 Im also using all the newest versions of vs2005,orcas,sdk,extension,netfx3rc1. best regards - lleoneye Hello, it's a simple rectangle but with more objects in scene i get other code errors, too. <Grid> <Rectangle Stroke="sc#1, 1, 0, 0" Fill="sc#1, 1, 0.9154789, 0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="138,129,189,95" Width="Auto" Height="Auto" x:Name="Rectangle& ...Show All
Architecture I need help with application arhitecture?
Hi! I'm working on my first "big" C# and net framework application. I need some help with deciding how to plan the apllication, that it will use elegant C# code in make most out of net framework. Let me first describe the application. The application will consist of 4 important parts: 1.) Data acquisition driver part This part wil receives input data and store it in a buffer, when the buffer is full, the driver will notify the second part and continue with its work. This probably wil be a seperate windows driver. 2.) Data processing part This part will do some data processing on the input data. It will have many calculation intensive functions, which will execute based on the settings in part 3 and 4. When a functi ...Show All
Visual Studio GAT not compatible with W2K?
The GAT homepage lists " Windows 2000 Service Pack 4" as supported OS. But when I clone the SCSF guidance package (following the SCSF help) I get an error message when I try to register the new package (see below). It seems to me that the current GAT depends on the credui.dll that is not available under W2K. Is this an installation issue or an undocumented limitation Is there any workaround for registering my new Package on W2K Btw: I wonder how the SCSF installation was able to register the SCSF package! Note: the German text means "could not find the specified module". Hi, Are you running as admin when you try to register the package I know that in Windows 2000 registration of packages when running as non-a ...Show All
Visual C++ unresolved external symbols
id like to start off with i have no idea what i am doing i got this code from a winsock tutorial to give me a base structure for my program i am trying to connect to a pop3 server and check how many emails there are in an acount (irrelavant because i cant even get this to compile) anyway here is my code #include <windows.h> #include <winsock.h> #include <stdio.h> #define NETWORK_ERROR -1 #define NETWORK_OK 0 void ReportError( int , const char *); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszArgs, int nWinMode); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszArgs, int nWinMode) { WO ...Show All
SQL Server Scheduled SSIS
Hello all, I was very familiar in creating quite complex DTS packages in SQL2000. Now with 2007 that is all gone. I looked at the command line utility and it's UI counter part but these are just for executing. I keep getting references to the SSIS designer but I can't find where it is. Can someone point me in the right direction Thanks, Jesse So, dtsrun.exe has now become dtexec.exe and it's counterpart on the UI is dtexecui.exe. The UI you see in the UI there is the same type of ui you'll see in the SQL Server Agent job. You'll just simply need to select SQL Server Integration Services for the step type and you'll get the same screens. Brian ...Show All
Visual Studio Problem building Managed C++ project with Msbuild that has multiple assembly references
I have a VS2005 solution that includes a Managed C++ project as well as several C# projects. The C++ project references several of the C# projects. All projects in the solution reference log4net.dll (as an AssemblyReference). My C++ project builds without any warnings using the VS2005 IDE. However, when I build the solution using MSBuild, I get zillions of warning messages such as: log4net.dll : warning C4945: 'LogicalThreadContextProperties' : cannot import symbol from '<some path>\log4net.dll': as 'log4net::Util::LogicalThreadContextProperties' has already been imported from another assembly 'log4net' For my managed C++ project, I set all references to be: Copy Local: true Copy Local Depencies: false Use Depend ...Show All
Game Technologies: DirectX, XNA, XACT, etc. general use of XNA vertex types?
I am trying to create some methods to manipulate various parts of the XNA vertex structs. I want to be able to pass all the different vertex types as arguments to these methods. Because they are structs they don't derive from a base class other than ValueType. If I use ValueType as the parameter I don't have access to the propertys of the vertex. Is this a case where refelection would be usefull Can anyone help me find a way to write a method that can access the position property of any type of vertex. I hope I have been clear enough. Thanks. Mark Flamer wrote: I may be overlooking something basic. I have only been programing for 6mo (noob). I have a base geometry class that all my geometry types i ...Show All
Visual Studio 2008 (Pre-release) XBAP and EXE with VS 2005 Orcas and Blend
Hello, How can I do an application XBAP and EXE with Visual Studio 2005 Orcas and Blend I’d like not to modify the source code. Thanks! Have you looked at this article http://expressionblend.com/blogs/news/archive/2006/12/06/XBAP-the-Blend-way.aspx Im working my way through the .Net 3.0 Tutorials too. Let me know if you find anything useful Thanks Ian ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation help
I think I'm being dense today, but I can't figure this out for the life of me. I have a model that I want to rotate across the X and Y axis. My issue is that when I rotate across the Y axis, I always want the rotation to occur as if the axis was vertical in terms of world space. If I multiply by my X rotation first, obviously the Y axis moves with it, so rotating about the Y axis will rotate it about its transformed axis. If I multiply by my Y rotation first, the X axis moves with it, so my X rotation is now turned along with it. I basically want to rotate downward and then left/right independently from what the actual transformed axes become...or, rotate left/right and then downward independently. When I rotate about the X, it shoul ...Show All
Windows Live Developer Forums VEMap.AttachEvent("oncontextmenu", function) firing twice
I am trying to add a pushpin to the map by right clicking on it. I am using AttachEvent with oncontextmenu event. I notice the event fires twice for any function. Am i doing something wrong Here is the code sample. (the map is created as a response to a XHR request) var VEControls = Class.create(); VEControls.prototype = { initialize: function(){ var url = "/maps/defaultLatLong"; var opt = { // Use GET method: 'get', // Handle successful response onSuccess: function(req) { var latLong = req.responseText.parseJSON(); if(latLong){ map = new VEMap('mapHolder'); map.LoadMap(new VELatLong(latLong["lat"], latLong["long"]), 15 ,'r' ,false); map.AttachEvent("oncontextmenu" ...Show All
Visual Basic GDI+ How to handle multiple complicated Paths individually
Hi All, I am developing an app that draws out complicated paths. I have this working fine. I want to be able to load an undeterminable number of paths onto the graphics and be able to handle each seperatly. Dim pathSection As New GraphicsPath pathSection.AddArc(250, 80, 100, 50, 30, -180) pathSection.AddLine(180, 220, 320, 80) Dim pathSection2 As New GraphicsPath pathSection2.AddLine(50, 20, 5, 90) pathSection2.AddLine(50, 150, 150, 180) ...Then I can set up Regions based on these paths and use Region hit testing to determine which path the user is selecting. The PROBLEM: This code will work but I have no way knowing if my app is going to have 2 GraphicsPaths or 1000.&n ...Show All
Visual Basic A first chance exception of type 'System.NullReferenceException'
Hi folks, sorry to bother you all. I'm learning VB and have become a little stuck. Whenever I try to debug or run my programme, I just get: "A first chance exception of type 'System.NullReferenceException' occurred in General Utilities.exe A first chance exception of type 'System.NullReferenceException' occurred in General Utilities.exe" I have 2 forms, Main and Passwd. I open Main, disable the buttons then open the Passwd form. This is the code: Public Class Menu Private Sub Menu_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown REM On entering our form, disable all the buttons Me.Renamer.Enabled() = False REM Now, prompt for a password Dim PasswordForm As New Passwd Pas ...Show All
