Anarchy's Q&A profile
.NET Development Repeater and datalist
Hi i am Vojislav Milutinovic from Serbia (Europa) and i have problem with a nested datalist control inside repeater. So pleas help me. Problem I have database with 3 data tables. First with employes , second with pictures and thrd with idkeys from this two tables because i want to every employe have many pictures so thats a many to many releshionship. I made DAL and BLL , on presentacion layer i have two datasource object first DS1 is list of all employes and second is DS2 with list of pictures but with parameter IDEmploye so i can find pictures for every employe. I made repeater and inside datalist (for list of pictures that he have , just names not real images) . Data repeater shows ok , but datalist shows data fro ...Show All
SQL Server Downgrade SQL 2005 Entreprise to Workgroup Edition ?
Hi I have the following problem : I have licensed a german version of sbs 2003 premium. With the upgrade to sbs 2003 r2, I will buy the rights to use the sql 2005 workgroup edition. But the german sbs 2003 r2 is not available by now. I could go in production with the sql 2005 trial, this is an entreprise edition. My question is : can I downgrade the sql server 2005 from this trial edition (entreprise) to the workgroup edition Is it possible easy any recommendations Many thanks ! Ferrarirosso You can upgrade Trial SQL Server 2005 to Workgroup edition but it must happen before the trial edition expires. ...Show All
Visual Studio 2008 (Pre-release) Animating the Web content of Frame?
Hi, I am trying to animate the content of frame,so that when ever source of frame is changed some kind of animation is fired to give visual indication for this. I am able to animate the frame but the web content of frame is not animation,i am trying the following thing: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Canvas Name="myCanvas" > <Frame BorderBrush="Gray" Source="http://gmail.com" Background="LightBlue" BorderThickness="2" Width="400" Height="400" Name="myWebBrowser" Canvas.Left="100" Canvas.Top="20" > ...Show All
Visual Studio Tools for Office Rpresenting ranges as nmbers
Hi, Is there anyway I can represent a range (A1, E1) as something like (11,41) Can I replace "A" and "E" part with some integer Actually I am populating the excel sheet dynamically and I cant tell how many columns or row I am going to have at design time. So to create named ranges I have to rely on number of columns and rows I have in my datatable using MyDataTable.Columns.Count and MyDataTable.Rows.Count. Thanks, VSTO 2003 does not provide a lot of documentation about the Office object model; however, there are a number of topics on using the Excel object model for specific tasks at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_wrcore/html/wror ...Show All
.NET Development xml classes
I have a XML file. Is there any tool in .NET for converting XML files to C# classes .xml -> .cs I want to make classes and properties from xml Elements and Nodes. These classes are responsible for handling xml nodes and elements. How is it possible Example: < DataSource Name = " Test " > < ConnectionProperties > < IntegratedSecurity > true </ IntegratedSecurity > < ConnectString > Data Source=STATION3;Initial Catalog=Test </ ConnectString > < DataProvider > SQL </ DataProvider > </ ConnectionProperties > < rd:DataSourceID > e374e1ac-c69f-4fe1-a3f7-54da6e8c61c3 </ rd:DataSourceID > &l ...Show All
SQL Server How to increase the data file size?
Hi All, Is it possible to increase the data file size in SQL Server 2005 Express edition If yes then how Thanks, Varun Hi Varun If you have MSSQL Management Studio installed then from there select Database's properties > Files There you can setup initial maximum size for Data and Log file. Thanks, ...Show All
Visual Studio Express Editions Matrix implementation problem
Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All
Visual C# How to convert Parameterized Delegate from C# to VB.Net?
Hi I want to convert this code segment to VB.Net but none of the converters worked. using System; using System.Windows.Forms; using System.Threading; using System.Reflection; private static Thread m_SplashThread = null; private static Form m_SplashForm = null; Dim splashFormType as Form ' actually splashFormType is refrence to form already added to application m_SplashThread = new Thread(new ThreadStart(delegate(){createForm(splashFormType); Application.Run(m_SplashForm);})); Private static voic createForm() { 1 Create a new instance of form 2 set properties 3 assign new instance to form m_SplashForm } How it can be converted any way Please comments Thanks Post an act ...Show All
.NET Development Visual studio 2003 and CF2.0
I have installed Framework 2.0 but my projects still reference 1.1 How do I use 2.0 Does 1.1 have to be removed first I am using .NET 2003 is this compatible with CF 2.0 The only version of Visual Studio that allows targeting of the 2.0 Compact Framework (or the full framework) is Visual Studio 2005. Short of upgrading to 2005 your only other option would be to use the command like build tools from the 2.0 SDK. ...Show All
Visual Studio Express Editions How to transfer HBITMAP (C++) to Bitmap (C#) ?
Dear Everyone, I have created the following codes to capture frame from a video using DirectShow in C++. It uses HBITMAP to hold the bitmap data. Now, I want to transfer the HBITMAP to C# Bitmap. How could I do Thank you. ====================== long size; hr = pDet->GetBitmapBits(1, &size, 0, width, height); printf("Size %i \n", size); if(SUCCEEDED(hr)){ char* pBuffer = new char[size]; if(!pBuffer) return E_OUTOFMEMORY; try{ hr = pDet->GetBitmapBits(1, 0, pBuffer, width, height); printf("pBuffer [%c] \n", pBuffer[3]); } catch(...){ delete[] pBuffer; throw; } if(SUCCEEDED(hr)){ BITMAPINFOHEADER *bmih = (BITMAPINFOHEADER*)pBuffer; HDC hdcDest = GetDC(0); void *pData = pBuffer + sizeof(BIT ...Show All
Visual Basic Urgent Help, how do I bind a MSDBGrid in vb.net?
I have to add the dbgrid32.ocx to my visual studio 2003 in order to be able to update the table dinnamically and to handle the events of the after and before update to calculate a pair of columns. I need the first column to be a checkbox column, can this be done How do I bind the control to the table Thanks and best regards. AC Alfonso Calderon, Thank you for your mark answer and another question here. According to your description, I recommand you to add a method too refresh the data you modified, then add next. It seems that you still have problem in DataGrid paging Aren't you Because you mentioned that "the next 10". Actually I am not sure what is the meaning of next 10. The following code shows ...Show All
SQL Server How to get sql server name with a vb-script?
Is there anyone who knows how to get sql server name using a vb-script I have tryed this: bKey = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL") But it cant open it for read. Someone who knows a better way Regards SW-engineer "You need to know whether you are connection to Sql Server of Sql Express " Yes! My application can be installed on a machine with mssqlserver or sqlexpress. I need the name when i my script is creating my database. Here is the code: sqlcmd -S " & WshNetwork.ComputerName & "\sqlexpress -E -i dropp2.sql -i CreateP2DB.sql -i P2T.SQL As you se here, the name of the sqlserver (here sqle ...Show All
Visual Basic stringbuilder or string within structure to match a C++ struct..??
********************** C ++ 6.0 ******************************************* typedef struct sSegment { char szName[128]; } sSegment; int EXPORTED GetSegment(long lSegmentIndex, sSegment* pSegment) ********************** data marsaling in vb.net ******************************************* Public Declare Function GetSegment _ Lib "EVaRT40.dll" _ (ByVal lIndex As Integer, ByRef objSegment As Segment) As Integer ****************** ...Show All
Visual C++ weird error - variable value not changing
Hi - I have a problem with the following code, which is solving a double-integral by running nested for loops for hundreds of times. The problem is that on the highlighted line, on the first pass through when debugging, when FB = 0, XB correctly calculates (eg with Range as 6 and Steps as 500, and DepoVol as 0.0013, XB will be -0.0078). However, on the second pass, when FB = 1, XB should update to -0.0077844 but it doesn't, it stays as -0.0078. Same on the third, 4th, etc etc pass... Any clues I'm a total newbie to C++ so don't rule out any simple syntax errors... Is it only calculating if a variable changes by a certain amount, and if so how do I force it to recalculate anyway Cheers double Integrate( double Vol , double ...Show All
Windows Search Technologies WDS 3.0 Items indexed so far count stays 0
I just installed WDS 3.0 today. When I ran index now, I can see several thousands of items to be left to scan. But the count for Items indexed so far stays 0. When I ran an earlier veresion of WDS, it shows me a negative number. I have yet to be able to do any search on either version. I'm running XP Home with SP2. Larry I fixed this by deleting the index file - I tried moving the index location and that just copied the index files, so I deleted the large index file and indexing is now working. ...Show All
