Hi, i writing a code in c language in load runner to upload a file into the current directory using c.I am getting an error "operands of = have illegal types `pointer to char' and `int'" Below is my code:- char *current_dir = getcwd(); char *filename = "current_dir:\\EUR_PR_01302013.txt"; long file_stream; if ((file_stream = fopen(filename, "a+")) == NULL) //open file in append mode { lr_output_message("Unable to create %s", filename); return -1; } Any kind of help/suggestion will be appreciated. regards, raghvendra panda
raghvendrapanda
Posts
-
error while trying to uplaod the file in current directory using c language -
swf file not getting displayed in chromeHy, I have shown a swf file inside the object tag which was embedded into an iframe through jaava script .The following code works in IE 8 but is not working in chrome.I have pasted my code below. <script type="text/javascript"> function populateIframe(FilePath) { // var FilePath='../images/suche.swf'; var ifrm = document.getElementById('ucCMSHTML_ifrmCMSHTML'); ifrm = (ifrm.contentWindow) ? ifrm.contentWindow : (ifrm.contentDocument.document) ? ifrm.contentDocument.document : ifrm.contentDocument; ifrm.document.open(); ifrm.document.write('<object height="300px" width="100%" style="border: 0 0 0 0 ; background-color: #FFFFFF;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ><param name="movie" value="'+FilePath+'\" ><param name= wmode value ="opaque"/> </object>'); ifrm.document.close(); contentEditable="true" ; } </script> <table width="100%"> <tr> <td> <%-- <asp:Literal ID="ltrcmsHTML" runat="server"></asp:Literal>--%> <div style='border: 1; width: 100%; height: 100%; overflow: auto; padding: 0px'> <iframe id='ifrmCMSHTML' runat='server' width='100%' height='300' scrolling='no' frameborder='0' style='border: 0 0 0 0; background-color: #FFFFFF;'></iframe> </div> </td> </tr> </table> Please Help.
-
cursor in the textbox is blinking very fastautoextender result was coming behind Flah inside iframe. To resolve the issue we have used the attached code. As a result autoextender result is coming above flash. But the cursor started blinking very fast in all the textbox of the page in an abnormal way. We need to know how to make the cursor blink in normal way.
-
paas MinimumPrefixLength value of ajax autocompleter from code behindWe have used an ajax autoextender inside a user control in a web application. Now we need to make the “MinimumPrefixLength” property of Autoextender configurable from server side. But as we are using an WebApplication(not a website), we are not able to access the Autoextender ID from codebehind. As a result not able to configure the property. We have tried using tag “<%=>” and keeping a property inside this to assign the value. But its giving error. “can not convert to Syestem.Int32” Can Any one please suggest how to make the property configurable.
-
IE 8 browser autocomplete Feature not working on enter buttonI am using a .ascx page in a aspx page. The ascx page contains a textbox and a search button. The Enter key was not working with search but when we put following line textboxsearchInput.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + btnSearch.ClientID + "').click();return false;}} else {return true}; "); on the page load method of the ascx page the Enter key starts working but now the auto complete functionality of the text box is not working, When we go to any option in the auto complete drop down and press Enter the form is submitted without considering that option. Please help if any one have some idea.
-
Browser AutoComplete Not working in IE 8I am using a .ascx page in a aspx page. The ascx page contains a textbox and a search button. The Enter key was not working with search but when we put following line textboxsearchInput.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + btnSearch.ClientID + "').click();return false;}} else {return true}; "); on the page load method of the ascx page the Enter key starts working but now the auto complete functionality of the text box is not working, When we go to any option in the auto complete drop down and press Enter the form is submitted without considering that option. Please help if any one have some idea.
-
SSIS package converting varchar(MAX) to nvarchar(50)hy, I have created an ssis package which tranfers data from one database to another,first i drop the tables and then recreat it before inserting data. I have a cloumn which has a datatype of varchar(MAX) and on re creation becomes nvarchar(50). what should i do to avoid it. Thanks & Regards, Raghvendra Panda
-
Access denied for parent.parent.enableclock();Hy, I have two ASP.net applications which are running simultaneously (p1,p2). If i am working on application p1, i have to restart the clock of application p2 also.For this i have written a java script code which works perfectly on my machine but gives error in server. Here is my code string strOut = @" <SCRIPT language='JavaScript'> var tparent; alert('In PC.SearchResult.ascx Script'); debugger; try{ if(parent.EnableClock == null) { alert(' In PC.SearchResult.ascx Script:parent.enableclock=null'); alert(parent.parent.EnableClock); if(parent.parent.EnableClock == null) { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock=null'); tparent = parent.parent.parent; } else { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock!=null'); tparent = parent.parent; } } else { alert('In PC.SearchResult.ascx Script: parent.enableclock!=null'); tparent = parent; } alert('The value of tparent is'); alert(tparent.value); tparent.resetClock(); tparent.EnableClock = true; alert(" + Session.Timeout.ToString() + ");" + "tparent.startClock(" + Session.Timeout.ToString() + " );} catch (err){alert(err.message)}</SCRIPT>"; // string strOut = @"<SCRIPT language='JavaScript'>try{var tparent;if(parent.EnableClock == null){if(parent.parent.EnableClock == null){tparent = parent.parent.parent;}else{tparent = parent.parent;}}else{tparent = parent;} tparent.resetClock();tparent.EnableClock = true;tparent.startClock(" + Session.Timeout.ToString() + ");}catch(err){alert(err.message);}</SCRIPT>"; Response.Write(strOut); The error that i get is when the debugger goes on "parent.parent",it says "ACCESS IS DENIED" Please help
-
Access denied for javascript objectHy, I have two application which are running simultaneously (p1,p2). If i am working on application p1, i have to restart the clock of application p2 also.For this i have written a java script code which works perfectly on my machine but gives error in server. Here is my code string strOut = @" <SCRIPT language='JavaScript'> var tparent; alert('In PC.SearchResult.ascx Script'); debugger; try{ if(parent.EnableClock == null) { alert(' In PC.SearchResult.ascx Script:parent.enableclock=null'); alert(parent.parent.EnableClock); if(parent.parent.EnableClock == null) { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock=null'); tparent = parent.parent.parent; } else { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock!=null'); tparent = parent.parent; } } else { alert('In PC.SearchResult.ascx Script: parent.enableclock!=null'); tparent = parent; } alert('The value of tparent is'); alert(tparent.value); tparent.resetClock(); tparent.EnableClock = true; alert(" + Session.Timeout.ToString() + ");" + "tparent.startClock(" + Session.Timeout.ToString() + " );} catch (err){alert(err.message)}</SCRIPT>";
-
find a session value of one project in another projectHy, I have a web site which has two different web projects in it.the problem is when ever i am not using any page of one of the Project(P1) and using a page of the other project(p2), it give me session time out soon as session of P1 gets expired. I have to write the code in such a way that,the session values of 2 different project can interact with each other so that even if i am not working on any of the pages to which a particular project belong ,it wont give me session time out.
modified on Monday, November 22, 2010 7:41 AM
-
How to read a 180mb xml file in asp.netthat's exactly what my problem is ,i am unable to find a control which can hold huge data upto 200 mb.as i want to pass it as an parameter into the database, i have to send the data as a parameter,kindly suggest me what i should do.
-
session start is getting fired on each page clickHi, I have problem that session start is getting fired each time I click on a page. But on other machine it is gets fired only once when session is started. I have the same code on both machine. here is my code string strOut = @"<SCRIPT language='JavaScript'>try{var tparent;if(parent.EnableClock == null){if(parent.parent.EnableClock == null){tparent = parent.parent.parent;}else{tparent = parent.parent;}}else{tparent = parent;} tparent.resetClock();tparent.EnableClock = true;tparent.startClock(" + Session.Timeout.ToString() + ");}catch(err){}</SCRIPT>"; Please Help, Raghvendra Panda
modified on Wednesday, November 17, 2010 10:52 PM
-
How to read a 180mb xml file in asp.netI have a requirement in which i have to import an xml file of 180mb into the database. i tried to read the file using stringbuilder,session....but nothing worked .every time i tried to read the file ..i got an error of out of memory exception.. Please Help, Raghvendra Panda
-
Exporting Datasets Into Multiple Sheets In Excelthanks man its working
-
Exporting Datasets Into Multiple Sheets In ExcelHi, I had a procedure which returns 5 result sets. Now i want to export 3 results sets in 1 excel sheet and the remaining 2 resultsets in another excel sheet. Can we do this in C#.net code and how. Thanks, Ram
-
Replace ImagePlaceHolder1 in Word 2007 with the image selected in Combo box in C#.net Windows ApplicationInstead of place holder i placed 'Sign1' Text in Word 2007 with this i tried your code to replace it with image but iam getting System.Drawing.Bitmap in .pdf while saving instead i should .jpg image Below is my code object[] Parameters; Parameters = new object[15]; Parameters[0] = "Sign1"; Parameters[1] = _missing; Parameters[2] = _missing; ; Parameters[3] = _missing; ; Parameters[4] = _missing; ; Parameters[5] = _missing; Parameters[6] = _missing; Parameters[7] = _missing; Parameters[8] = _missing; Parameters[9] = img; Parameters[10] = _missing; Parameters[11] = _missing; Parameters[12] = _missing; Parameters[13] = _missing; Parameters[14] = _missing; myfind.GetType().InvokeMember("Execute", BindingFlags.InvokeMethod, null, myfind, Parameters); I am getting from img = GetSignPath();//method used to Clipboard.SetDataObject(img); i am getting img from below mentioned code inside GetSignPath(); MemoryStream ms = new MemoryStream((byte[])ds.Tables[0].Rows[0]["SignatureImage"]); System.Drawing.Image img = System.Drawing.Image.FromStream(ms); imgPath = "C:\\" + comboempname.Text + ".JPG".Trim(); img.Save(imgPath); //return imgPath; return img; Any Help is Appreciated Thanks, Harish
-
Replace ImagePlaceHolder1 in Word 2007 with the image selected in Combo box in C#.net Windows ApplicationHi, I have created one template in MsWord 2007 and placed ImagePlaceHolder1 in it.I am able to find and replace the text but how to find ImagePlaceHolder1 in that Word Doc and replace with the one i select in the combo. At the end I want to save it in .pdf format as shown below. object format = Word.WdSaveFormat.wdFormatPDF; _wordapp.ActiveDocument.SaveAs(ref save, ref format, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing); Want to submit this project today. Any help is appreciated. Thanks, Harish
-
Application.Find.Execute() method is giving problem in Windows Server 2003Still it is giving me the same exception The stub received bad data
-
Application.Find.Execute() method is giving problem in Windows Server 2003I am stuck at this place . Its working fine in Window XP but giving above mentioned ComException error here The stub received bad data Exception from HRESULT: 0x800706F7 _aDoc.Application.Selection.Find.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing); Its urgent.Any help is highly appreciated Thanks
-
Application.Find.Execute() method is giving problem in Windows Server 2003Following is my code:- Word.Range SearchArea = _aDoc.Application.ActiveDocument.Range(ref _missing, ref _missing); // _aDoc.Content.Find.Replacement.ClearFormatting(); _aDoc.Application.Selection.Find.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing); SearchArea = _aDoc.Application.Selection.Find.Replacement.Application.Selection.Range; Object oMissed = SearchArea; Object oLinkToFile = false; //default Object oSaveWithDocument = true;//default _aDoc.InlineShapes.AddPicture(fileName, ref oLinkToFile, ref oSaveWithDocument, ref oMissed); File.Delete(fileName); this.FindAndReplace1("Sign1", ""); Running successfully in Windows Xp but not working in Windows Server 2003 Here i am getting exception _aDoc.Application.Selection.Find.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing); Please any help is appreciated.reuired urgently Thanks