Click here to Skip to main content
15,901,426 members
Home / Discussions / C#
   

C#

 
Questionmerged cell aoto fit in c# [modified] Pin
Nilish14-Oct-08 22:06
Nilish14-Oct-08 22:06 
AnswerRe: merged cell aoto fit in c# Pin
Mycroft Holmes14-Oct-08 22:18
professionalMycroft Holmes14-Oct-08 22:18 
GeneralRe: merged cell aoto fit in c# Pin
Nilish14-Oct-08 23:01
Nilish14-Oct-08 23:01 
QuestionValidators are not working in Iframe Pin
MAT100314-Oct-08 21:29
MAT100314-Oct-08 21:29 
AnswerRe: Validators are not working in Iframe Pin
leppie14-Oct-08 21:40
leppie14-Oct-08 21:40 
GeneralRe: Validators are not working in Iframe Pin
MAT100314-Oct-08 21:56
MAT100314-Oct-08 21:56 
GeneralRe: Validators are not working in Iframe Pin
leppie14-Oct-08 22:05
leppie14-Oct-08 22:05 
QuestionC in .Net returning C1004: unexpected end of file found Pin
Member 560524014-Oct-08 21:12
Member 560524014-Oct-08 21:12 
The following code is not compiling in .Net 1.1
[code]
This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"
#include <ocilib.h>

#using <mscorlib.dll>

using namespace System;

int _tmain(int argc, char *argv[])
{
OCI_Connection* cn;
OCI_Statement* st;
OCI_Resultset* rs;
int Counter = 0;
int ret;
FILE *TablesFile;
char *Database, *UserName, *UserPassword, *StartDate, *EndDate;
char Message[256] = "";
/* for (i=0; i<argc;> * {
* printf("%d %s\n", i, argv[i]);
* }
*/

Database = argv[1];
UserName = argv[2];
UserPassword = argv[3];
StartDate = argv[4];
EndDate = argv[5];
OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT);

cn = OCI_ConnectionCreate(Database, UserName, UserPassword, OCI_SESSION_DEFAULT);
st = OCI_StatementCreate(cn);
sprintf(Message, "select MemNumber,Turnover from (select mem_number MemNumber,sum(trans_turnover) Turnover from members join transact on mem_number = trans_code where Trans_date between '%s' and '%s' and mem_barred = 0 group by mem_number order by turnover desc ) where rownum <=200", StartDate, EndDate);
// printf("%s\n",Message);

OCI_ExecuteStmt(st, Message);
// OCI_ExecuteStmt(st,"select MemNumber,Turnover from (select mem_number MemNumber,sum(trans_turnover) Turnover from members join transact on mem_number = trans_code where Trans_date between '01-Jan-2004' and '14-Oct-2008' and mem_barred = 0 group by mem_number order by turnover desc ) where rownum < 201");
rs = OCI_GetResultset(st);
// printf("OCI_GetResultset() returns rs = %x\n", rs);
TablesFile = fopen("Tables.html", "wt");
while (OCI_FetchNext(rs))
{
fprintf(TablesFile, "% 4d - %u\n", ++Counter, OCI_GetDouble(rs, 1));
}
ret = fclose(TablesFile);
OCI_Cleanup();
return EXIT_SUCCESS;
}

[/code]
.Net returns C1004: unexpected end of file found
and as hard as I look I cannot see a missing or additional brace.
AnswerRe: C in .Net returning C1004: unexpected end of file found Pin
leppie14-Oct-08 21:38
leppie14-Oct-08 21:38 
QuestionHow to set font Roman 10cpi in Crystal Reports Pin
Rajesh.prajapat14-Oct-08 20:13
Rajesh.prajapat14-Oct-08 20:13 
Questionsession in asp.net & c#.net Pin
kamalesh574314-Oct-08 19:48
kamalesh574314-Oct-08 19:48 
AnswerRe: session in asp.net & c#.net Pin
Eduard Keilholz14-Oct-08 20:01
Eduard Keilholz14-Oct-08 20:01 
GeneralRe: session in asp.net & c#.net Pin
kamalesh574314-Oct-08 20:53
kamalesh574314-Oct-08 20:53 
GeneralRe: session in asp.net & c#.net Pin
Mycroft Holmes14-Oct-08 22:09
professionalMycroft Holmes14-Oct-08 22:09 
AnswerRe: session in asp.net & c#.net Pin
Jaffer Mumtaz14-Oct-08 20:30
Jaffer Mumtaz14-Oct-08 20:30 
QuestionCan you give me an idea? Pin
Rasma Raj14-Oct-08 19:28
Rasma Raj14-Oct-08 19:28 
AnswerRe: Can you give me an idea? Pin
Pedram Behroozi14-Oct-08 20:12
Pedram Behroozi14-Oct-08 20:12 
QuestionSetting SQL Server date column to Null using SqlDateTime Pin
Brad Wick14-Oct-08 19:11
Brad Wick14-Oct-08 19:11 
AnswerRe: Setting SQL Server date column to Null using SqlDateTime Pin
Pedram Behroozi14-Oct-08 20:02
Pedram Behroozi14-Oct-08 20:02 
AnswerRe: Setting SQL Server date column to Null using SqlDateTime Pin
Eduard Keilholz14-Oct-08 20:03
Eduard Keilholz14-Oct-08 20:03 
AnswerRe: Setting SQL Server date column to Null using SqlDateTime Pin
Pete O'Hanlon15-Oct-08 4:07
mvePete O'Hanlon15-Oct-08 4:07 
GeneralRe: Setting SQL Server date column to Null using SqlDateTime Pin
Brad Wick15-Oct-08 4:55
Brad Wick15-Oct-08 4:55 
GeneralRe: Setting SQL Server date column to Null using SqlDateTime Pin
Pete O'Hanlon15-Oct-08 9:21
mvePete O'Hanlon15-Oct-08 9:21 
QuestionRunning VLC-Unicast Stream from C# Pin
deezZ14-Oct-08 19:03
deezZ14-Oct-08 19:03 
AnswerRe: Running VLC-Unicast Stream from C# Pin
leppie14-Oct-08 21:41
leppie14-Oct-08 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.